JuliaInterpreter.jl icon indicating copy to clipboard operation
JuliaInterpreter.jl copied to clipboard

Creating tuples might be a bottleneck

Open KristofferC opened this issue 4 years ago • 2 comments

Playing around with PProf.jl it seems we spend a lot of time creating tuples (If I read the output correctly, 20% of full time on summer benchmark):

image

Perhaps it could be optimized somehow.

KristofferC avatar Jul 31 '19 13:07 KristofferC

(If I read the output correctly, 20% of full time on summer benchmark):

Yep! To clarify, that's 0.43% of total time spent actually executing that frame (exclusive), and 20% of total time spent executing this frame and any functions it calls (inclusive)

NHDaly avatar Aug 01 '19 14:08 NHDaly

This is not so strange since extremely hot functions like iterate return a tuple and we currently never elide forming that.

KristofferC avatar Aug 21 '19 13:08 KristofferC