directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r491736 [1/2] - /directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/schema/PrepareString.java
Date Tue, 02 Jan 2007 02:12:38 GMT
Author: elecharny
Date: Mon Jan  1 18:12:37 2007
New Revision: 491736

URL: http://svn.apache.org/viewvc?view=rev&rev=491736
Log:
Heavily modified the code to gain some speed. The normalization of strings now is around 18
times slower than with
the previously used DeepTrimNormalized. It will be tough to improve the code again, but we
can remove one pass (I don't know how atm).
- now works with a target array instead of passing Strings from method to method
- the map method directly modify this target array instead of parsing the whole string
- fixed a bug : string were always lowercased 
- internal methods are now private

Modified:
    directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/schema/PrepareString.java


Mime
View raw message