Fork me on GitHub
#specter
<
2019-06-18
>
lvh19:06:59

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?

nathanmarz22:06:49

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

nathanmarz22:06:41

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

lvh23:06:58

Awesome, thanks :)