You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Jeff Zemerick (Jira)" <ji...@apache.org> on 2023/01/11 15:17:00 UTC

[jira] [Closed] (OPENNLP-1440) Ensure files are read via buffered IO operations

     [ https://issues.apache.org/jira/browse/OPENNLP-1440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff Zemerick closed OPENNLP-1440.
----------------------------------

> 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
>            Priority: Minor
>             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)