Skip to content

Conversation

@mantepse
Copy link
Contributor

@mantepse mantepse commented Oct 30, 2025

Currently, calling a statistic copies the dict of known terms. To avoid this, we create a new lazy attribute, for internal use.

@github-actions
Copy link

Documentation preview for this PR (built with commit b412a48; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

@cxzhong cxzhong requested review from dimpase and gmou3 October 31, 2025 16:37
@dimpase
Copy link
Member

dimpase commented Oct 31, 2025

@mantepse - can you have a look at this?

@dimpase
Copy link
Member

dimpase commented Oct 31, 2025

Oh, sorry, it's your PR :-)

vbraun pushed a commit to vbraun/sage that referenced this pull request Nov 21, 2025
sagemathgh-41119: slightly restructure the logic of first_terms, to avoid copying when calling a statistic
    
Currently, calling a statistic copies the dict of known terms.  To avoid
this, we create a new lazy attribute, for internal use.
    
URL: sagemath#41119
Reported by: Martin Rubey
Reviewer(s):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants