chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] #21: read-string, order of magnitude speedup


From: Chicken Trac
Subject: [Chicken-janitors] #21: read-string, order of magnitude speedup
Date: Sun, 26 Apr 2009 00:48:47 -0000

#21: read-string, order of magnitude speedup
------------------------+---------------------------------------------------
Reporter:  zbigniew     |       Owner:  felix         
    Type:  enhancement  |      Status:  new           
Priority:  major        |   Component:  core libraries
 Version:  4.0.1        |    Keywords:                
------------------------+---------------------------------------------------
 There was some old code that Kon added to speed up read-string on stream
 ports, but it was disabled (it did not work).  The attached patch fixes
 and enables this code and also applies the speedup to unbounded reads.
 The result is almost exactly a 10x boost for read-string on stream ports.

 Detailed benchmarks at http://paste.lisp.org/display/79185.

 The patch also enables port-position updating for read-string.  It only
 updates the column number, but I think this is sufficient for what are
 typically binary reads; if you want lines, use read-lines.

-- 
Ticket URL: <http://www.irp.oist.jp/trac/chicken/ticket/21>
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]