Closed 4P5 closed 3 months ago
This PR speeds up file:readString() by using Guava's Files API instead of FiguraInputStream.
file:readString()
Files
FiguraInputStream
On my machine the old method takes ~1.5 seconds to read a 440 KB file, while the new method takes ~2 ms.
This PR speeds up
file:readString()
by using Guava'sFiles
API instead ofFiguraInputStream
.On my machine the old method takes ~1.5 seconds to read a 440 KB file, while the new method takes ~2 ms.