Why C++ compiles slowly

BCS none at anon.com
Thu Aug 26 07:14:00 PDT 2010


Hello Jacob,

> On 2010-08-26 08:13, Walter Bright wrote:
> 
>> Steven Schveighoffer wrote:
>> 
>>> On Tue, 24 Aug 2010 03:58:57 -0400, Walter Bright
>>> <newshound2 at digitalmars.com> wrote:
>>>> Steven Schveighoffer wrote:
>>>> 
>>>>> With profiling enabled, gprof outputs this as the top hitters:
>>>>> Flat profile:
>>>>> Each sample counts as 0.01 seconds.
>>>>> % cumulative self self total
>>>>> time seconds seconds calls ms/call ms/call name
>>>>> 77.76 6.68 6.68 2952 2.26 2.26 elf_findstr(Outbuffer*, char
>>>>> const*,
>>>>> char const*)
>>>>> 2.10 6.86 0.18 4342 0.04 0.04 searchfixlist
>>>> elf_findstr definitely looks like a problem area. I can't look at
>>>> it right now, so can you post this to bugzilla please?
>>>> 
>>> http://d.puremagic.com/issues/show_bug.cgi?id=4721
>>> 
>> Let me know how this works:
>> 
>> http://www.dsource.org/projects/dmd/changeset/628
>> 
> Shouldn't machobj.c get the same optimization?
> 

Shouldn't something like a table lookup be shared rather than duplicated?

-- 
... <IXOYE><





More information about the Digitalmars-d mailing list