Skip to content

Instantly share code, notes, and snippets.

@moritz
Created September 26, 2014 09:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save moritz/71e80df7a6756ac5251e to your computer and use it in GitHub Desktop.

Profiling this program:

use v6;
my $fh = open '/usr/share/dict/words';
for $fh.lines {
    1;
}

gives http://moritz.faui2k3.org/tmp/profile-1411722954.70066.html#routines

Sort by exclusive time. The top entry, <anon> at src/gen/m-CORE.setting:8094 belongs to ListIter.reify, the second to GatherIter.reify, the third is ListIter.reify again. All three are part of the grand lazy list iteration scheme, and make up 63% of runtime, even though the top two "offenders" are already JITted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment