diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2025-01-30 06:34:48 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2025-01-30 06:34:48 -0800 |
commit | 89589c71c1eaa51a9f2d1c75b12ae47668ffc662 (patch) | |
tree | 29411a7baba86aa1cec9c16960d8c6ded813d513 /hash.h | |
parent | 81b5e08190cbb76a8bf02a4204d538800e1a9f1a (diff) | |
download | txr-89589c71c1eaa51a9f2d1c75b12ae47668ffc662.tar.gz txr-89589c71c1eaa51a9f2d1c75b12ae47668ffc662.tar.bz2 txr-89589c71c1eaa51a9f2d1c75b12ae47668ffc662.zip |
get-csv: speed up with unsafe get-char.
I'm seeing about a 6% improvement in get-csv from this.
* stream.c (us_get_char, us_unget_char): New static functions,
which assume all arguments have correct type.
(get_csv): If we use source_opt, validate that it's a stream
with class_check. Use us_get_char and use_unget_char.
Diffstat (limited to 'hash.h')
0 files changed, 0 insertions, 0 deletions