Awesome. This is exactly the sort of thing I've wanted to see for a long time.
So apparently the new cache is way too slow. Can the size be increased to a point that makes the performance comparable to the old cache? One obviously has to balance the cache size against memory usage (which won't show up in the performance tests). Aaron Meurer On Mon, Jul 20, 2015 at 12:05 PM, Jason Moore <[email protected]> wrote: > This now has every commit from 0.7.3 on: > > http://www.moorepants.info/misc/sympy-asv/#diff.TimeJacobian.time_subs > > first major slow down: new caching added > slight speedup: fastcache optional dep added > another speedup: cache increased from 500 to 1000 > slight slow down: c removed from core > > This goes for subs and jacobian. > > > Jason > moorepants.info > +01 530-601-9791 > > On Mon, Jul 20, 2015 at 9:38 AM, Peter Brady <[email protected]> > wrote: > >> Elaborating a bit, the 2 main additional costs of a bounded cache >> compared to an unbounded one are: >> >> 1. The extra cost of managing the LRU machinery (fastcache alleviates >> this by doing all the necessary management at the C level) >> 2. The cost of repeated cache misses because the cache size is not >> appropriate for a particular problem. >> >> Problem 2 is much harder to quantify and solve efficiently and could >> easily be the cause of the significant slowdown on some tests. We could >> just make the cache bigger... >> >> On Monday, July 20, 2015 at 10:30:11 AM UTC-6, Peter Brady wrote: >>> >>> We visited the jacobian issue a while ago and I think the takeaway was >>> that a larger cache size (about 2-3000) sped things up considerably. Not >>> sure if this is the same issue though. >>> >>> On Monday, July 20, 2015 at 10:25:24 AM UTC-6, Ondřej Čertík wrote: >>>> >>>> On Mon, Jul 20, 2015 at 1:02 AM, Jason Moore <[email protected]> >>>> wrote: >>>> > Yes, it seems that the new cache commit is the slow down in these >>>> tests. >>>> >>>> If this is the case, then I know that Peter Brady who wrote it will be >>>> interested in this. We should get to the bottom of the issue. >>>> >>>> Ondrej >>>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "sympy" 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 http://groups.google.com/group/sympy. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/sympy/a2484c2c-a031-46f9-8dc9-827efbc48927%40googlegroups.com >> <https://groups.google.com/d/msgid/sympy/a2484c2c-a031-46f9-8dc9-827efbc48927%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "sympy" 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 http://groups.google.com/group/sympy. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/CAP7f1AhWxQBUQY9fkJVmxOcAPuz%2BJefBOdmTDMNO5f1cSoHfOA%40mail.gmail.com > <https://groups.google.com/d/msgid/sympy/CAP7f1AhWxQBUQY9fkJVmxOcAPuz%2BJefBOdmTDMNO5f1cSoHfOA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "sympy" 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 http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6KaQZKJipbaqj-4dTtsgYHivXZDnYBBsaK8gtRG%3DN34cQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
