Uploaded image for project: 'OpenNLP'
  1. OpenNLP
  2. OPENNLP-1440

Ensure files are read via buffered IO operations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.0
    • 2.1.1
    • Applications
    • 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.

      Attachments

        Activity

          People

            mawiesne Martin Wiesner
            mawiesne Martin Wiesner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: