help-smalltalk
[Top][All Lists]
Advanced

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

Re: [Help-smalltalk] Iliad - updating elements


From: Stefan Schmiedl
Subject: Re: [Help-smalltalk] Iliad - updating elements
Date: Tue, 14 Jul 2009 09:24:25 +0200

On Tue, 14 Jul 2009 01:47:51 +0200
Nicolas Petton <address@hidden> wrote:

> I already added Iliad.Id>>printOn:, just update :)

Well, I did ... and while looking at the diffs I noticed 
Iliad.Id table for the first time.

It is implemented on the instance side and builds the array
with the character pool, from which the random ids (themselves a
subclass of ByteArray) are built. And it is called quite often
when constructing an id.

address@hidden iliad $ gst
GNU Smalltalk ready

st> PackageLoader fileInPackage: 'Iliad'
...
st> Time millisecondsToRun: [ 10000 timesRepeat: [Iliad.Id new ] ]
3086
st> Time millisecondsToRun: [ 10000 timesRepeat: [Iliad.Id new ] ]
3087
st> 

code code clickty click ...

address@hidden iliad $ gst
GNU Smalltalk ready

st> PackageLoader fileInPackage: 'Iliad'
st> Time millisecondsToRun: [ 10000 timesRepeat: [Iliad.Id new ] ]
384
st> Time millisecondsToRun: [ 10000 timesRepeat: [Iliad.Id new ] ]
383

off to work,
s.

Attachment: id.patch
Description: Text Data

Attachment: signature.asc
Description: PGP signature


reply via email to

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