summaryrefslogtreecommitdiff
path: root/module/scripts/help.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-05-28 23:00:20 +0200
committerLudovic Courtès <ludo@gnu.org>2014-05-28 23:00:20 +0200
commita41b07a34f7309dccb2140ed924d7cd1c63268f9 (patch)
treecab08583e7a9fc245f18346b662a8a7eca82d1ca /module/scripts/help.scm
parenteb6ac6efcdb6fe72fdecb4aa7161e86d0e1d3282 (diff)
downloadguile-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