Fork me on GitHub

Is there a way to "prime" a navigator applied to a data structure? Context: I have a data structure which I'll be calling setval on a pile of times, always with different values but always at the same locations, so I'm wondering if there are efficiency gains to be had by only navigating once and then reusing that. Disclaimer: I don't understand the caching magic at all so maybe specter is essentially already doing that?


@lvh the inline compiler is already ensuring that the most optimal path possible is used for all runs of the callsite after the first


you can tighten things up for certain cases by using ^:direct-nav


Awesome, thanks :)