Re: [exim-dev] RFC: Refactoring expand_string_internal

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Johannes Berg
Ημερομηνία:  
Προς: Sheen, Tony
Υ/ο: 'exim-dev@exim.org'
Αντικείμενο: Re: [exim-dev] RFC: Refactoring expand_string_internal
Sheen, Tony wrote:
> For maintainability, the worst program I ever worked on had just a single
> function - main() - but it ran like greased lightning which was the main
> requirement! Formatting it nicely with 'proper' functions reduced its speed
> by almost 15%.
>

I'm curious on what kind of machine all this has happened. Shouldn't, on
a modern system/CPU, a small and often-used function be more efficient
than inlining it everywhere because it'll stick in the CPU cache?

johannes