chicken-janitors
[Top][All Lists]
Advanced

[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 05:02:15 -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  |  
---------------------------------------------+------------------------------

Comment(by zbigniew):

 I found someone mentioning that timegm() could be emulated on OS X via
 setenv() and mktime() but that it was "ass slow".  This is also the
 suggestion given in the manpage on OS X:
 http://www.manpagez.com/man/3/timegm/osx-10.4.php.  I thought perhaps that
 10.5 had itself used this suggestion and that was the problem.

 So I tried it and it is not "ass slow"--oddly it is slightly faster than
 the existing portable version:

 {{{
 1.003s CPU time, 0.01s GC time (major), 200783 mutations, 5/14 GCs
 (major/minor)
 real    0m1.811s
 }}}

 I don't suggest using this version; I am simply expressing my bafflement
 as to why the native code is even "ass slower".

-- 
Ticket URL: <http://www.irp.oist.jp/trac/chicken/ticket/286#comment:2>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

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