directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] Created: (DIRSERVER-732) FilterParser initialized for each search
Date Sat, 09 Sep 2006 08:25:22 GMT
FilterParser initialized for each search
----------------------------------------

                 Key: DIRSERVER-732
                 URL: http://issues.apache.org/jira/browse/DIRSERVER-732
             Project: Directory ApacheDS
          Issue Type: Improvement
            Reporter: Emmanuel Lecharny
            Priority: Minor
             Fix For: 1.1.0


The FilterParserImpl is initialized ecery time we do a search, when it should only be initialized
once, and be synchronized if we use it. The cost of this initialization, even if not important,
represent around 1% of all the CPU.

Another point I would raise is : do we need to parse filters on the server ? At first glance,
it seems that its usage is only necessary when dealing with persistent searches, but even
then, the received request is supposed to contains a preparsed form of the filter, which is
stored in a Filter structure. I may be wrong, as I didn't have look at the code very thouroughly,
but it seems strange to me ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message