Performance Improvements

Significant improvements to the runtime of core XPath and XForms functions (path resolution, template contextualization, etc).
Assuming that this is just for the purpose of not having to call data.size() more than once, it's fascinating to me that we do this level of performance optimization. Is it generally better for us to store an extra variable to save the overhead of an extra function call?