News for hackers. Stuff that matters.
Re:Show HN: Revring, a circular buffer with zero memory waste by cpr on Thursday June 18, 2015 @05:07PM (#9741621)
Gosh, all that to save one byte? ;-)
Re:Show HN: Revring, a circular buffer with zero memory waste by jhallenworld on Thursday June 18, 2015 @09:48PM (#9742640)
Suppose you have only 4 entries (perhaps very large) in your ring. You might care about this.
Re:Show HN: Revring, a circular buffer with zero memory waste by jonsen on Thursday June 18, 2015 @05:12PM (#9741641)
That byte will be needed elsewhere to make it multitasking safe.
Re:Show HN: Revring, a circular buffer with zero memory waste by codehero on Thursday June 18, 2015 @05:29PM (#9741711)
I'm running it on a system with 512 bytes of RAM and multiple queues...saving 1 byte helps. I do not need extra space for synchronization; I can enable/disable interrupts without extra RAM required.