Opened 12 years ago
Closed 7 years ago
#6520 closed enhancement (fixed)
[with patch, needs work] Implement cached_function with weakref cache
Reported by: | nthiery | Owned by: | nthiery |
---|---|---|---|
Priority: | major | Milestone: | sage-duplicate/invalid/wontfix |
Component: | misc | Keywords: | cached function, weakref |
Cc: | sage-combinat, roed, SimonKing | Merged in: | |
Authors: | Reviewers: | Travis Scrimshaw | |
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description (last modified by )
The preliminary attached patch (taken from the Sage-Combinat patch server) implements a variant of cached_function where the cache uses weak references. Again: preliminary: the test do not pass, ...
Feedback welcome!
The first planned application is for homsets, after the category stuff #5985 will be in.
Attachments (1)
Change History (7)
comment:1 Changed 12 years ago by
- Description modified (diff)
- Owner changed from cwitty to nthiery
- Status changed from new to assigned
- Type changed from defect to enhancement
comment:2 Changed 12 years ago by
- Cc roed added
- Description modified (diff)
Changed 12 years ago by
comment:3 follow-up: ↓ 4 Changed 7 years ago by
- Cc SimonKing added
- Milestone changed from sage-feature to sage-duplicate/invalid/wontfix
- Report Upstream set to N/A
- Status changed from needs_work to needs_review
comment:4 in reply to: ↑ 3 Changed 7 years ago by
comment:5 Changed 7 years ago by
- Reviewers set to Travis Scrimshaw
- Status changed from needs_review to positive_review
This is the same feature as @weak_cached_method
from #12215.
comment:6 Changed 7 years ago by
- Resolution set to fixed
- Status changed from positive_review to closed
Note: See
TracTickets for help on using
tickets.
Done in #12215?