Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve caching for spaces of modular forms #16321

Open
saraedum opened this issue May 10, 2014 · 27 comments
Open

Improve caching for spaces of modular forms #16321

saraedum opened this issue May 10, 2014 · 27 comments

Comments

@saraedum
Copy link
Member

Spaces of modular forms do manual caching which causes trouble at #11895. This ticket aims to cleanup the code to use cached_method, and CachedRepresentation where appropriate.

It also moves HeckeModule from Module_old to Module.

Depends on #15692
Depends on #16328

Component: modular forms

Keywords: days71, sd87

Work Issues: waiting for patchbot to run tests

Author: Julian Rüth

Branch/Commit: u/saraedum/ticket/16321 @ fd89bbb

Issue created by migration from https://trac.sagemath.org/ticket/16321

@saraedum saraedum added this to the sage-6.2 milestone May 10, 2014
@saraedum
Copy link
Member Author

Dependencies: #16328

@nexttime nexttime mannequin modified the milestones: sage-6.2, sage-6.3 May 11, 2014
@saraedum
Copy link
Member Author

Branch: u/saraedum/ticket/16321

@saraedum
Copy link
Member Author

Author: Julian Rüth

@saraedum
Copy link
Member Author

New commits:

88cab96Replaced all manual caching in modular forms spaces with the @cached_method decorator
6a0ff98Ambient spaces for modular forms have CachedRepresentation
2740494Remove explicit caching from ModularForms()
3b99babSet ModularFormSpace.Element
324bef3Added a category parameter to Module
ea6afa9Merge branch 'ticket/16328' into ticket/16321
aee72f7fixed a typo in category_object.pyx
6963cccTurned HeckeModule from a Module_old into a Module

@saraedum
Copy link
Member Author

Commit: 6963ccc

@saraedum

This comment has been minimized.

@saraedum

This comment has been minimized.

@saraedum
Copy link
Member Author

Work Issues: pickling issues

@saraedum
Copy link
Member Author

comment:6

Although all doctests pass, I think there are still potential issues with pickling when caches contain circular references.

@saraedum
Copy link
Member Author

Changed work issues from pickling issues to pickling issues, cached_method parameters incorrect

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 12, 2014

Branch pushed to git repo; I updated commit sha1. New commits:

79457aaMerge branch 'develop' into ticket/16321
ce27b84Removed sage.misc.cachefunc.ClearCacheOnPickle
e27e316Propagate key of a @cached_method correctly
94fcddbMerge branch 'u/saraedum/ticket/16337' of git://trac.sagemath.org/sage into ticket/15692
72fce8bAdded a pickle parameter for @cached_method
0717849Enable pickling of the cache for groebner_basis()
561072fMerge branch 'u/saraedum/ticket/15692' of git://trac.sagemath.org/sage into ticket/16321
c74f601Fix incorrect usage of key parameter of @cached_method for ambient spaces of modular forms

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 12, 2014

Changed commit from 6963ccc to c74f601

@saraedum
Copy link
Member Author

Changed dependencies from #16328 to #15692, #16328

@saraedum
Copy link
Member Author

Changed author from Julian Rüth to Julian Rueth

@saraedum
Copy link
Member Author

Changed work issues from pickling issues, cached_method parameters incorrect to none

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 23, 2014

Changed commit from c74f601 to 410d21e

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 23, 2014

Branch pushed to git repo; I updated commit sha1. New commits:

9eab84bMerge branch 'develop' into ticket/15692
410d21eMerge branch 'ticket/15692' into ticket/16321

@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@fchapoton
Copy link
Contributor

comment:13

failing doctests, see patchbot reports

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 21, 2016

Branch pushed to git repo; I updated commit sha1. New commits:

c182f40Remove ClearCacheOnPickle meta class
e3a7eb4Do not pickle cached methods
3a0be11Merge remote-tracking branch 'trac/u/saraedum/ticket/15692' into t/16321/ticket/16321

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 21, 2016

Changed commit from 410d21e to 3a0be11

@saraedum
Copy link
Member Author

Changed keywords from none to days71

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 21, 2017

Branch pushed to git repo; I updated commit sha1. New commits:

fd89bbbMerge remote-tracking branch 'origin/develop' into t/16321/ticket/16321

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 21, 2017

Changed commit from 3a0be11 to fd89bbb

@saraedum
Copy link
Member Author

Work Issues: waiting for patchbot to run tests

@saraedum
Copy link
Member Author

Changed keywords from days71 to days71, sd87

@saraedum
Copy link
Member Author

Changed author from Julian Rueth to Julian Rüth

@adeines
Copy link
Mannequin

adeines mannequin commented Jul 21, 2017

comment:20

This doesn't want to import ClearCacheOnPickle

aly@aly-laptop:~/Sage/develop/sage$ ./sage -tp src/sage/modular/
Traceback (most recent call last):
  File "/home/aly/Sage/develop/sage/src/bin/sage-runtests", line 89, in <module>
    from sage.doctest.control import DocTestController
  File "/home/aly/Sage/develop/sage/local/lib/python2.7/site-packages/sage/doctest/control.py", line 33, in <module>
    from .sources import FileDocTestSource, DictAsObject
  File "/home/aly/Sage/develop/sage/local/lib/python2.7/site-packages/sage/doctest/sources.py", line 33, in <module>
    from .parsing import SageDocTestParser
  File "/home/aly/Sage/develop/sage/local/lib/python2.7/site-packages/sage/doctest/parsing.py", line 55, in <module>
    from sage.all import RealIntervalField
  File "/home/aly/Sage/develop/sage/local/lib/python2.7/site-packages/sage/all.py", line 105, in <module>
    from sage.algebras.all   import *
  File "/home/aly/Sage/develop/sage/local/lib/python2.7/site-packages/sage/algebras/all.py", line 22, in <module>
    import sage.algebras.catalog as algebras
  File "/home/aly/Sage/develop/sage/local/lib/python2.7/site-packages/sage/algebras/catalog.py", line 62, in <module>
    from sage.algebras.iwahori_hecke_algebra import IwahoriHeckeAlgebra as IwahoriHecke
  File "/home/aly/Sage/develop/sage/local/lib/python2.7/site-packages/sage/algebras/iwahori_hecke_algebra.py", line 34, in <module>
    from sage.combinat.root_system.weyl_group import WeylGroup
  File "/home/aly/Sage/develop/sage/local/lib/python2.7/site-packages/sage/combinat/root_system/__init__.py", line 118, in <module>
    from . import type_A
  File "/home/aly/Sage/develop/sage/local/lib/python2.7/site-packages/sage/combinat/root_system/type_A.py", line 17, in <module>
    from . import ambient_space
  File "/home/aly/Sage/develop/sage/local/lib/python2.7/site-packages/sage/combinat/root_system/ambient_space.py", line 16, in <module>
    from sage.misc.cachefunc import ClearCacheOnPickle
ImportError: cannot import name ClearCacheOnPickle

@adeines adeines mannequin added s: needs work and removed s: needs review labels Jul 21, 2017
@mkoeppe mkoeppe removed this from the sage-6.4 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants