mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
According to the new benchmarks, this leads a 5% speed improvement when reading small strings, and a 27% improvement when reading large strings. * libguile/read.c (READER_STRING_BUFFER_SIZE): Change to 128; update comment to mention codepoints. (scm_read_string): Make `str' a list of strings, instead of a string. Store characters read in buffer `c_str'. Cons to STR when C_STR is full, and concatenate/reverse at the end. * benchmark-suite/benchmarks/read.bm (small, large): New variables. Set %DEFAULT-PORT-ENCODING to "UTF-8". ("read")["small strings", "large strings"]: New benchmarks. |
||
---|---|---|
.. | ||
0-reference.bm | ||
arithmetic.bm | ||
bytevectors.bm | ||
chars.bm | ||
continuations.bm | ||
if.bm | ||
logand.bm | ||
ports.bm | ||
r6rs-arithmetic.bm | ||
read.bm | ||
srfi-1.bm | ||
srfi-13.bm | ||
strings.bm | ||
structs.bm | ||
subr.bm | ||
uniform-vector-read.bm | ||
vectors.bm | ||
vlists.bm | ||
write.bm |