[Vm-dev] [Re: Copy Down to avoid Looking Up]

ken.dickey at whidbey.com ken.dickey at whidbey.com
Sat Mar 20 15:18:34 UTC 2021

Thanks all for contributing to my education.  Much to think about.

Even with memory "on chip" these days for SOC, it seems IC (MonoMorphic) 
+ PIC (PolyMorphic) win over copy-down based on CPU cache locality.

For MegaMorphic case, one _might_ profitably specialize such selectors 
to contain/point-to caching dict of class->method as the lookups fault 
in.  Have to test to see if caching the larger number of lookup results 
to avoid chronic dynamic lookup pays off.  Simpler cache strategy to 
manage than copy-down, but equivalent based on Vanessa's squint test.  
Probably data dependent..

Thanks again to all!

More information about the Vm-dev mailing list