Virtual methods
BCS
none at anon.com
Thu Feb 4 12:16:22 PST 2010
Hello dsimcha,
> == Quote from Walter Bright (newshound1 at digitalmars.com)'s article
>
>> Believe it or not, you can do profile guided optimizations with the
>> dmd profiler and optlink. The profiler will emit a file to be passed
>> to the linker which will set the layout of functions to minimize
>> paging.
>>
> Is that still a relevant optimization? It probably made sense circa
> 1995 when computers had much less memory, but now I would think that
> binaries are so much smaller than a typical computer's memory that
> they almost never get paged out.
>
It's still valid (to an extent) for two reasons; careful placement of code
can make things load faster by causing a more ideal page load order (all
code starts paged out) and if you turn your head and squint, the CPU cache
looks like paged memory.
--
<IXOYE><
More information about the Digitalmars-d
mailing list