[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-janitors] Re: #286: utc-time->seconds is abysmally slow on OS X
From: |
Chicken Trac |
Subject: |
[Chicken-janitors] Re: #286: utc-time->seconds is abysmally slow on OS X |
Date: |
Mon, 19 Jul 2010 04:46:57 -0000 |
#286: utc-time->seconds is abysmally slow on OS X
---------------------------------------------+------------------------------
Reporter: zbigniew | Owner:
Type: enhancement | Status: new
Priority: major | Milestone:
Component: core libraries | Version: 4.5.x
Keywords: utc-time->seconds slow molasses |
---------------------------------------------+------------------------------
Changes (by zbigniew):
* priority: not urgent at all => major
Comment:
In the patch above, I enabled the portable timegm() included in Chicken,
normally used only for SVR4 which lacks this extension, and the results
were 25 times faster on OS X:
{{{
0.863s CPU time, 0.011s GC time (major), 200783 mutations, 5/14 GCs
(major/minor)
real 0m2.310s
}}}
A far cry from Linux and still 10x slower than local-time->seconds on OS
X, but it beats the heck out of the terrible native code.
Whether this issue still exists on 10.6 is another question, I don't have
it to test on (please pipe up if anybody does). I don't really want to
activate this fix if a native fast timegm() is available in Snow Leopard,
but it looks pretty important to include it on OS X 10.5.
If someone wants to test the speed on FreeBSD or NetBSD with and without
the patch, that might be good too.
--
Ticket URL: <http://www.irp.oist.jp/trac/chicken/ticket/286#comment:1>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.