-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
Allow parsing of arguments for cached_function and cached_method #15657
Comments
comment:1
(curious) |
Branch: u/saraedum/ticket/15657 |
Commit: |
Changed branch from u/saraedum/ticket/15657 to public/structure/cached_args-15657 |
comment:7
I've changed Here are some timings: With patch:
Before:
So there does not appear to be any (statistically) significant speed regression (I did multiple runs of each as well). If you're happy with my changes, then positive review. PS - I also added the key option for the cache to file. New commits:
|
comment:8
Sage does not start anymore for me:
Somehow your merge has really gone wrong. Do you want me to fix this for you? |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:10
Started just fine for me with 6.2.beta5, and here's my current 6.2.beta6 version (which also starts up without error). |
comment:11
Ok. I had to |
Author: Julian Rueth |
Reviewer: Travis Scrimshaw |
comment:12
Thanks. |
comment:13
|
comment:15
Fixed. |
Changed branch from public/structure/cached_args-15657 to |
Changed commit from |
comment:17
Actually using the |
comment:18
Hello guys !! With designs I would like to have some new parameter for cached methods, but I wonder if it would be a good idea of slow something that we want to be fast... Here is the thing : I would like to only cache the return values corresponding to "some" inputs of the cached function. More precisely, if some parameter is set to True I want to cache the result, otherwise I don't want to. Do you know if it can be useful to you, or if it can be obtained by a trick with the current features of cached methods ? Thaaaaaaanks ! Nathann |
Because it will be handy to normalize and/or ignore arguments for these functions and method. See #1314 for an example.
CC: @simon-king-jena
Component: misc
Keywords: cached method function
Author: Julian Rueth
Branch:
2f19ea5
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/15657
The text was updated successfully, but these errors were encountered: