help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] 'LookupTable empty' doubles its size


From: Stephen Compall
Subject: [Help-smalltalk] 'LookupTable empty' doubles its size
Date: Sun, 14 Jan 2007 00:43:14 -0600
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.0.9) Gecko/20061211 SeaMonkey/1.0.7

I'll do this backwards: fixed in address@hidden/smalltalk--backstage--2.2--patch-2, available from http://csserver.evansville.edu/~sc87/{archive}/2007-nocandy

Sorry, this site won't produce HTTP directory listings. patch-1 is the patch I posted earlier with the accept*Node: changes, and base-0 is a tag of patch-240.

This issue finally got me to put in place some ulimits for development: I'm using ulimit -m 175000 and -v 250000 at the moment for gst.

st> |tst| tst := LookupTable new.
    100 timesRepeat: [tst basicSize printNl. tst empty]!
16 32 64 128 256 512
1024

...and so on; you can see where this is going. (I get to basicSize => 16M before ulimit steps in.)

After the fix:

st> |tst| tst := LookupTable new.
    100 timesRepeat: [tst basicSize printNl. tst empty]!
16 16 16 16
16

Furthermore, all tests pass, except for mutate.st as earlier reported.

2007-01-14 Stephen Compall <address@hidden>


* kernel/HashedColl.st: Add copyEmpty, using primSize instead of
        basicSize.  Fixes size-doubling for LookupTable.

--
Stephen Compall
http://scompall.nocandysw.com/blog




reply via email to

[Prev in Thread] Current Thread [Next in Thread]