All hail the speed demons (O'Reillynet)
Posted Nov 4, 2005 17:16 UTC (Fri) by dps
Parent article: All hail the speed demons (O'Reillynet)
I think bloat *is* a problem, and it applies to my code too... when I estimate 300--500 lines of code and the actually code is more like 1500 lines this indicates a problem to me.
That said being big is not necessaitly bad... my current choice of CGI library is big because it was designed to allow you to decompress zip archives and feed the to cgi programs uncompressed, and not be vulnerable to zips of death consuming all avialable disc space. This feature now works.
The infrastructure for this is overkill for some applications but using it made sense if I had to have it anyway. The ability to replay a request when using gdb is an addictive side benefit. Unfortunately this library is not generally available, so not bother asking for a copy.
I reduced some string functions from 30% of a profile to under 5% by making them process 2 characters at a time. This was hard work and those functions are a lot bigger and more complex than the natural implementation.
to post comments)