specter

Latest version: 1.1.3
lvh 2019-06-18T19:34:59.006Z

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?

nathanmarz 2019-06-18T22:47:49.007300Z

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

nathanmarz 2019-06-18T22:48:41.007600Z

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

lvh 2019-06-18T23:53:58.008Z

Awesome, thanks :)