*How do I disable caching for elliptic curve gens() results?* *The cache doesn't store (or check) enough information* *to return the correct results.* *A cache search slows everything down when computing* *many different elliptic curves within a programmed loop.*
*Example:* *E = EllipticCurve([-157*157,0])* *G = E.gens(descent_second_limit = 13, proof=False)* *print len(G), E.gens_certain()* *The above takes about 15 seconds to correctly output:* * 1 True* *But compare that to the following* *(after reloading the kernel which clears the cache):* *E = EllipticCurve([-157*157,0])* *G = E.gens(descent_second_limit = 10, proof=False)* *print len(G), E.gens_certain()* *H = E.gens(descent_second_limit = 13, proof=False)* *print len(H), E.gens_certain()* *The above takes less than a second to correctly output* * 0 False* *and then INSTANTLY outputs the incorrect* * 0 False* *because it uses an incorrectly cached result.* *The descent_second_limit value either wasn't cached* *or is ignored for a matching cached gens() call.* *The second gens() call shouldn't be matching any* *previous result and still take 15 seconds to compute* *and then output: 1 True.* *The gens() option "use_database=False" has no effect* *on this caching operation.* *The only way I can clear the cache seems to be* *to reload the kernel, but I can't do that within a program.* *It would be nice if I could completely disable caching* *so that when my program computes many different* *elliptic curves in a loop, it wouldn't take longer* *and longer to run because sage has to search* *for previously matching cached entries which* *I know aren't there. And I think that when there* *are too many cached elliptic curves, it stores* *them on disk, which takes a thousand times* *longer to search.* *Running jupyter, sage-7.6.ova, VirtualBox, Windows 10.* *Lee* -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
