Martin Wiesner created OPENNLP-1440:
---------------------------------------

             Summary: Ensure files are read via buffered IO operations
                 Key: OPENNLP-1440
                 URL: https://issues.apache.org/jira/browse/OPENNLP-1440
             Project: OpenNLP
          Issue Type: Improvement
          Components: Applications
    Affects Versions: 2.1.0
            Reporter: Martin Wiesner
            Assignee: Martin Wiesner
             Fix For: 2.1.1


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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to