On Mon, May 11, 2026 at 12:53:51PM +0800, Qian Yun wrote:
> On 5/11/26 12:28 PM, Qian Yun wrote:
> > 
> > OK, maybe you are right.  The failure I saw happens in
> > "insertInCache".  Maybe during "insertInCache", GC happens
> > and "compactCache" is called and modifies cache array,
> > causing "insertInCache" to fail.
> > 
> > I'll try your "allow dangling weak pointers" idea.
> > 
> > - Qian
> > 
> 
> This should be the root cause, the timing of this kernel
> cache recycle should not happen during kernel insertion.
> 
> See my attachment, this patch does not break any regression
> test, and speeds up src/input/mapleok.input by 25%!
> 
> And there is room for improvement, the parameters can be
> tweaked.

It looks promising.  I think it needs more stress testing,
for example cases when there is really a lot of kernels.
And portability to other Lisp-s.

-- 
                              Waldek Hebisch

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/fricas-devel/agXWRGru2EGKg1b5%40fricas.org.

Reply via email to