Linux kernel design patterns - lack of red/black tree search function
Linux kernel design patterns - lack of red/black tree search function
Posted Jun 20, 2009 19:47 UTC (Sat) by giraffedata (guest, #1954)In reply to: Linux kernel design patterns - part 2 by madscientist
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.