Opened 16 years ago
Closed 16 years ago
#21 closed enhancement (fixed)
read-string, order of magnitude speedup
Reported by: | Jim Ursetto | Owned by: | felix winkelmann |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | core libraries | Version: | 4.0.1 |
Keywords: | Cc: | felix winkelmann | |
Estimated difficulty: |
Description
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.
Attachments (1)
Change History (3)
Changed 16 years ago by
Attachment: | read-string2.diff.txt added |
---|
comment:2 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
read-string patch