Commit graph

3 commits

Author SHA1 Message Date
Arcterus
b7f4bd01bc Move all of the utils into src 2014-07-20 20:20:55 -07:00
polyphemus
67a163184d Small performance enhancements
Get rid of half filled heuristic and use unsafe array indexing because
the indices should always be correct.
2014-07-15 11:15:24 +02:00
polyphemus
f06d9fe130 Rewrite cut_bytes(), more performant than GNU
Creates BufReader in buffer.rs. BufReader uses a stack allocated buffer
to read into and returns selected slices into the buffer. This does away
with any dynamic allocations in the 'newline loop.

1.5 to 2.5 more performant than previous version.
1.5 to 2.0 times more performant than GNU.
2014-07-09 12:17:48 +02:00