Ticket #6520 (needs_work enhancement)

Opened 14 months ago

Last modified 14 months ago

[with patch, needs work] Implement cached_function with weakref cache

Reported by: nthiery Owned by: nthiery
Priority: major Milestone: sage-feature
Component: misc Keywords: cached function, weakref
Cc: sage-combinat, roed Author(s): David Roe
Report Upstream: Reviewer(s):
Merged in: Work issues:

Description (last modified by nthiery) (diff)

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

trac_6520_weakref-cached-function-dr.patch Download (7.1 KB) - added by nthiery 14 months ago.

Change History

Changed 14 months ago by nthiery

  • owner changed from cwitty to nthiery
  • status changed from new to assigned
  • type changed from defect to enhancement
  • description modified (diff)

Changed 14 months ago by nthiery

  • cc roed added
  • description modified (diff)

Changed 14 months ago by nthiery

Note: See TracTickets for help on using tickets.