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

Timing data: pairs vs tuples #184

Closed timholy closed 3 years ago

timholy commented 3 years ago

@snoopi returns timing data in (t, mi) tuples; some of the new @snoopi_deep framework uses a pair t => obj instead. We should be consistent. I confess to having one concern with pr = t => obj: pairs are often used in contexts where pr.first is a "key" and pr.second is a "value." There is no sense in which t is a key for anything. The names .first and .second are neutral, so from that perspective this is not an abuse, but the printing t => obj reinforces the key/value association.