diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-05-28 23:00:20 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-05-28 23:00:20 +0200 |
commit | a41b07a34f7309dccb2140ed924d7cd1c63268f9 (patch) | |
tree | cab08583e7a9fc245f18346b662a8a7eca82d1ca /module/scripts/help.scm | |
parent | eb6ac6efcdb6fe72fdecb4aa7161e86d0e1d3282 (diff) | |
download | guile-a41b07a34f7309dccb2140ed924d7cd1c63268f9.tar.gz |
rdelim: Speed up 'read-string' (aka. 'get-string-all'.)
This yields a 20% improvement on the "read-string" benchmark.
* module/ice-9/rdelim.scm (read-string): Rewrite as a 'case-lambda',
with a tight loop around 'read-char', and without using
'read-string!'.
* test-suite/tests/rdelim.test ("read-string")["longer than 100 chars,
with limit"]: New test.
* benchmark-suite/benchmarks/ports.bm ("rdelim")["read-string"]: New
benchmark.
Diffstat (limited to 'module/scripts/help.scm')
0 files changed, 0 insertions, 0 deletions