Uploaded image for project: 'Directory Studio'
  1. Directory Studio
  2. DIRSTUDIO-1027

The LdifEditor parser is extremelly inefficient.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.0-M8 (2.0.0.v20130628)
    • None
    • None
    • None

    Description

      Processing huge LDIF file is likely to take an enormous amount of time. The parser works in a way that we frequently fetch a char from a StringBuffer, to remove it later. When you have a 1Mb file, that induces the copy of a 1Mb array every time we don't need the char we just read.

      Typically, parsing a 1 237 chars file, the noRead() method is called 393 times, and it calls the System.arrayCopy() the same number of time.

      Attachments

        Activity

          People

            Unassigned Unassigned
            elecharny Emmanuel L├ęcharny
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: