]> gitweb.factorcode.org Git - factor.git/commit
io: more hot-rodding for #376
authorJoe Groff <arcata@gmail.com>
Thu, 10 Nov 2011 01:21:44 +0000 (17:21 -0800)
committerJoe Groff <arcata@gmail.com>
Thu, 10 Nov 2011 01:22:01 +0000 (17:22 -0800)
commit4f4bbd33049a383765328608f90c937f88728467
tree34e9b2a8190889cd1ba8348ddfb6a3c4d40b07f9
parenta67931b7c5a6aabd97c7926252814ee91be35725
io: more hot-rodding for #376
* Change the interface of read-into to return a slice and an eof boolean separately so the compiler can optimize the slice.
* Add an each-stream-block-slice combinator that behaves like each-block but reuses a preallocated buffer for every iteration.
* Pull some strings in the stream-read-into implementation to further improve type propagation and bounds check elimination.
core/io/io-docs.factor
core/io/io-tests.factor
core/io/io.factor
core/sequences/sequences.factor