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):
vbraun pushed a commit to vbraun/sage that referenced this pull request Nov 26, 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):
vbraun pushed a commit to vbraun/sage that referenced this pull request Dec 1, 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):
@vbraun vbraun merged commit 7de2941 into sagemath:develop Dec 2, 2025
23 of 24 checks passed
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.

4 participants