[Glass] UUIDFFI library was: Re: UUID new >100x slower than Pharo?

Paul DeBruicker pdebruic at gmail.com
Tue Sep 17 12:07:35 PDT 2013

With the library here:

	location: 'http://smalltalkhub.com/mc/pdebruic/UUIDFFI/main'
	user: ''
	password: ''

The time on my machine to make 1000 UUIDs goes from 2000ms to 20ms.

Thats on 64bit linux, with the libuuid Tobias mentioned.

On 09/17/2013 11:46 AM, Tobias Pape wrote:
> 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
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass

More information about the Glass mailing list