[Glass] UUID new >100x slower than Pharo?
Tobias Pape
Das.Linux at gmx.de
Tue Sep 17 11:46:06 PDT 2013
Am 17.09.2013 um 20:27 schrieb Paul DeBruicker <pdebruic at gmail.com>:
> Thanks Dale,
>
> Tobias Pape replied off list that I should just use the FFI library as
> Pharo is calling the libuuid on the platform anyway. So I'll work on
> that.
>
oh I didn't notice it was off-list. sorry.
Anyway, on OSX and I think Linux, Squeak/Pharo is using uuid_generate(3)/libuuid
or uuidgen on systems like Free/NetBSD
Note that the Squeak folk detected problems especially on Ubuntu
---causing segfaults when trying uuid stuff (which happens all the time with
monticello)---
that date back to 2010. I remember folks at ESUG being bitten by that
problem.
See discussion here:
http://forum.world.st/Fix-for-UUID-library-crashes-td3308033.html
http://bugs.squeak.org/view.php?id=7358
The tricky solution there was to catch a possible segfault
and continue with image-side in this case:
(diff) http://squeakvm.org/cgi-bin/viewvc.cgi/squeak/trunk/platforms/unix/plugins/UUIDPlugin/sqUnixUUID.c?r1=2356&r2=2362
(code) http://squeakvm.org/cgi-bin/viewvc.cgi/squeak/trunk/platforms/unix/plugins/UUIDPlugin/sqUnixUUID.c?revision=2602&view=markup
Best
-Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20130917/e71a2716/attachment.pgp>
More information about the Glass
mailing list