timholy / SnoopCompile.jl

Provide insights about latency (TTFX) for Julia packages
https://timholy.github.io/SnoopCompile.jl/dev/
Other
309 stars 48 forks source link

Add accumulate_by_method #152

Closed timholy closed 3 years ago

timholy commented 3 years ago

This analysis tool is useful to detect methods that get a crazy number of specializations. These are candidates for refactoring into smaller, more independent chunks or nospecialize annotations.

timholy commented 3 years ago

Test failure fixed by #153 (reflected in the "pull request" passes even though the initial "push" failed).

timholy commented 3 years ago

Now this is called accumulate_by_source, and I'll add a second method in #159. That will reduce the number of exports by 1, whew.