summaryrefslogtreecommitdiffstats
path: root/mpi/mpi-config.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-04-22 06:42:32 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-04-22 06:42:32 -0700
commit3a32f231f2528665c795d0dbc9e89287eab29d56 (patch)
tree89b3d4c9b2a2349df5ff833a467f97ea994c2bb5 /mpi/mpi-config.h
parentcddcb16ec7d42f43756075dc571ed4be31d76a7a (diff)
downloadtxr-3a32f231f2528665c795d0dbc9e89287eab29d56.tar.gz
txr-3a32f231f2528665c795d0dbc9e89287eab29d56.tar.bz2
txr-3a32f231f2528665c795d0dbc9e89287eab29d56.zip
parser: batched read operation for speed.
As a result of this change, the startup time is reduced. The command txr -e '(compile-toplevel nil)' shows a 54% speedup: around 110 milliseconds down from around 170. Programs that read large amounts of TXR Lisp data will benefit. * parser.l (YY_INPUT): Use new get_bytes function instead of get_byte to read a buffer at a time. * stream.c (get_bytes): New function. * stream.h (get_bytes): Declared.
Diffstat (limited to 'mpi/mpi-config.h')
0 files changed, 0 insertions, 0 deletions