Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This get's into the specifics so you almost need to know the code your dealing with to make a relevant suggestion.

However, the easy option is to default to the slow code path on edge cases which considering it's probably a rare enough it's not important to make fast as long it's bug free. IMO, optimizations are always a balancing act between minimizing the computer's effort and minimizing the coders effort while trying to maintain long term readability. But, you can always keep track of more than one buffer so the option is there.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: