You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Stefan Seelmann (JIRA)" <ji...@apache.org> on 2015/05/30 16:08:17 UTC
[jira] [Updated] (DIRSTUDIO-1027) The LdifEditor parser is
extremelly inefficient.
[ https://issues.apache.org/jira/browse/DIRSTUDIO-1027?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Seelmann updated DIRSTUDIO-1027:
---------------------------------------
Fix Version/s: (was: 2.0.0-M9)
2.0.0-M10
> The LdifEditor parser is extremelly inefficient.
> ------------------------------------------------
>
> Key: DIRSTUDIO-1027
> URL: https://issues.apache.org/jira/browse/DIRSTUDIO-1027
> Project: Directory Studio
> Issue Type: Improvement
> Affects Versions: 2.0.0-M8 (2.0.0.v20130628)
> Reporter: Emmanuel Lecharny
> Fix For: 2.0.0-M10
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)