Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.1.0
-
None
Description
Several classes in opennnlp.tools exist which read files via FileInputStream without using buffered IO. If IO is not buffered, this can impose a (high) performance penalty as the JVM will have to use native (JNI) calls more often (resulting in more sys-calls to the OS).
We can avoid that by adapting existing classes to use BufferedInputStream or BufferedReader more consequently.