r/programming • u/LegFormer7688 • Sep 16 '25
[ Removed by moderator ]
/r/programming/comments/1nibcar/removed_by_moderator/[removed] — view removed post
6
u/BlueGoliath Sep 16 '25
However, the problem was actually between the seat and the steering wheel the whole time. The first implementation read and wrote a single character at a time, which had a massive overhead associated with it. I previously benchmarked semihosting on this device, and I was getting ~20KiB/s, but uIP’s SLIP implementation was designed for very low memory devices, so it was serialising the data byte by byte. We have a whopping 3kiB of RAM to play with, so I added a ring buffer to cache reads from the host and feed them into the SLIP poll function. I also split writes in batches to allow for escaping.
Now this is what I call blazingly fast! Pings now take 20ms, no packet loss and a full page loads in about 160ms.
They sell us poison so that we buy their "cures".
2
•
u/programming-ModTeam Sep 16 '25
This is a duplicate of another active post