Re: Method caches

2004-03-18 Thread Larry Wall
On Thu, Mar 18, 2004 at 05:25:00PM +, Piers Cawley wrote: : Larry Wall <[EMAIL PROTECTED]> writes: : : > On Wed, Mar 17, 2004 at 12:41:20PM -0500, Dan Sugalski wrote: : > : Currently I'm figuring on just nuking the whole cache in any of these : > : cases. Later on we can consider doing Clever

Re: Method caches

2004-03-18 Thread Piers Cawley
Larry Wall <[EMAIL PROTECTED]> writes: > On Wed, Mar 17, 2004 at 12:41:20PM -0500, Dan Sugalski wrote: > : Currently I'm figuring on just nuking the whole cache in any of these > : cases. Later on we can consider doing Clever Things, if it seems > : worthwhile. > > That's what Perl 5 does, FWIW.

Re: Method caches

2004-03-17 Thread mark . a . biggar
Don't forget about cache invalidation on dynamic method redefinition. -- Mark Biggar [EMAIL PROTECTED] > Okay, so it's method cache time. > > First important note: I've never done this before (I think my > antipathy towards objects might've given everyone just the tiniest > clue :) so pointers

Re: Method caches

2004-03-17 Thread Larry Wall
On Wed, Mar 17, 2004 at 12:41:20PM -0500, Dan Sugalski wrote: : Currently I'm figuring on just nuking the whole cache in any of these : cases. Later on we can consider doing Clever Things, if it seems : worthwhile. That's what Perl 5 does, FWIW. But you're caching scheme seems way too complicat

Re: Method caches

2004-03-17 Thread Dan Sugalski
At 5:31 PM + 3/17/04, Rafael Garcia-Suarez wrote: Dan Sugalski wrote in perl.perl6.internals : This seems... too simple, so I'm sure I'm missing something besides the potential massive memory usage. So, by all means, have at it. You'll need to worry about actions that invalidate all or part o

Re: Method caches

2004-03-17 Thread Rafael Garcia-Suarez
Dan Sugalski wrote in perl.perl6.internals : > > This seems... too simple, so I'm sure I'm missing something besides > the potential massive memory usage. So, by all means, have at it. You'll need to worry about actions that invalidate all or part of the method cache : introduction of a new clas