tlienart / Xranklin.jl

Experimental repo for a refactoring of Franklin.jl
https://tlienart.github.io/Xranklin.jl
MIT License
40 stars 1 forks source link

outputof can be slow due to invokelatest; this can make fullpass slow #247

Closed tlienart closed 1 year ago

tlienart commented 1 year ago

If the user has a hfun which they call in the layout and so that is executed on every single page, the overhead due to the invokelatest (which can be of the order of 0.5s it seems) compounds.

Removing the invokelatest is not trivial. Maybe experimenting with Base.get_world_counter at some appropriate spot and Base.invoke_in_world would be acceptable. Note that the compounding effect is primarily noted at full pass where the user would not have a chance to modify Utils so it should be ok to freeze the method table...

Dev: check test/bugs/worldage