Home
last modified time | relevance | path

Searched hist:"71 aec297511d8693eb083236b4aa080342fb137e" (Results 1 – 1 of 1) sorted by relevance

/haiku/src/add-ons/translators/ppm/
H A DPPMTranslator.cpp71aec297511d8693eb083236b4aa080342fb137e Sat Jan 26 19:33:01 UTC 2019 Adrien Destugues <pulkomandy@pulkomandy.tk> PPM translator: use a buffer for reading

Reading the file 1 byte at a time from a BFile is very inefficient.
Add a buffer, which makes things a lot faster (parsing a 200x200 image
used to run for a few seconds with 100% CPU use).

Change-Id: Ie2eea819475c9301fbb6102c41fa05ec2d2ca343
Reviewed-on: https://review.haiku-os.org/c/906
Reviewed-by: waddlesplash <waddlesplash@gmail.com>