Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a result cache to get_publisher_variable to store processed XML data #2342

Conversation

ascholerChemeketa
Copy link
Contributor

Calling get_publisher_variable multiple times from Python redoes the possibly expensive work of running the XSL report and parsing it. This saves the results of that work for use in future calls to the function.

On APEX Calculus, this and #2341 reduce the build time of APEX from 20m+ to ~2.5m.

@rbeezer
Copy link
Collaborator

rbeezer commented Dec 30, 2024

Really good! Merged as-is, only with a new commit message.

Curious to know why an attribute on a function might be superior to a module-level variable, such as our __temps? That could wait for Drop-In, no need to answer here.

Thanks for YASU.

@rbeezer rbeezer closed this Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants