News for hackers. Stuff that matters.
Re:Show HN: C library of generic, reference-counted data str... by nitrogen on Saturday June 15, 2013 @04:27PM (#5886199)
Just as an anecdote, in one of my university classes we had the assignment of writing and optimizing a memory allocator. When I switched from using structs to using pointer arithmetic in macros, I gained a significant performance boost, even though the in-memory data was exactly the same.
Re:Show HN: C library of generic, reference-counted data str... by zht on Saturday June 15, 2013 @08:15PM (#5886755)
were you compiling with optimizations on?
Re:Show HN: C library of generic, reference-counted data str... by nitrogen on Saturday June 15, 2013 @08:49PM (#5886873)
Yes, gcc -O2 on Opteron I believe (it was a while ago).