Re:A fun optimization trick from rsync
by dimatura on Monday October 29, 2018 @07:05AM
(#18326435)
Yes, it's basically the idea in Duff's device. Protothreads (http://dunkels.com/adam/pt/) uses a pretty similar trick.
[ Parent
| on HN ]
Ah, that's exactly the trick I was thinking of. I think I learned it from [1], but I'm pretty sure Protothreads predates that post. Thanks for the link!
1: https://www.chiark.greenend.org.uk/~sgtatham/coroutines.html