Performance debug and optimize replace_type_try_transport
#146
Labels
help wanted
Extra attention is needed
replace_type_try_transport
#146
Of the time spent in the new rewrite rule reification, 82.7% is spent in
replace_type_try_transport
(236.006s max for a single call), which is basically "match context[@type.try_transport ?base_type ?try_make_transport_base_type_cps ?p ?t ?t]
, replace withp t
" in a loop.I have asked about speeding this up on Zulip, but at this point I'm inclined to run another timing diff after #142 and then eat the ~2--3 minute slowdown.
(I'm also out of debugging time, @andres-erbsen if you want to debug, consider applying the patch
You might also want to throw a
Set Printing Implicit.
orSet Printing All.
. If you do want to debug this, let me know if there's any other information that would be useful to expose debugging-wise. AndLtac2 Set Reify.should_debug_fine_grained := fun () => Init.true.
should give access to the argument to and return fromreplace_type_try_transport
, though it'll give a bunch of other stuff as well.)Originally posted by @JasonGross in mit-plv/fiat-crypto#1778 (comment)
The text was updated successfully, but these errors were encountered: