Linux kernel design patterns - lack of red/black tree search function
Posted Jun 20, 2009 19:47 UTC (Sat) by giraffedata
In reply to: Linux kernel design patterns - part 2
Parent article: Linux kernel design patterns - part 2
... or guaranteed function cloning and cross-module inlining ...
I don't think it's cross-moduleness or variable-argumentness that make the common search function slow. It's the function pointer.
Does gcc inline even a locally defined used-once function when you call it via a constant function pointer? Didn't used to.
to post comments)