Skip to content

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
@ascholerChemeketa ascholerChemeketa deleted the get-publisher-variable-cache branch January 15, 2025 16:42
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