template statistics

Stefan Koch uplink.coder at googlemail.com
Wed Jun 3 09:10:50 UTC 2020


On Wednesday, 3 June 2020 at 08:40:18 UTC, FeepingCreature wrote:
> On Tuesday, 2 June 2020 at 08:37:35 UTC, FeepingCreature wrote:
>> [...]
>
> Update: I've hacked up an extremely basic callgrind dump, just 
> to test the format. It's based on line numbers, not functions, 
> which callgrind doesn't like: "functions" are 
> "file_filename_line_linenr". 
> https://github.com/FeepingCreature/dmd/commit/aa379ba7750b8d32f35906dc93d3c381cfa90e45 Note I'm *really* not sure if I'm doing the inclusive/exclusive accounting correctly.
>
> Did some internal testing. format!() seems to eat up a lot 
> (40%?), not sure if I'm reading this right, but it wouldn't 
> surprise me.

Looks correct.
Format is awful.


More information about the Digitalmars-d mailing list