jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christoph Kiehl (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-1251) DescendantSelfAxisQuery creates too many object instances
Date Fri, 07 Dec 2007 17:59:43 GMT

    [ https://issues.apache.org/jira/browse/JCR-1251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12549493
] 

Christoph Kiehl commented on JCR-1251:
--------------------------------------

Well spotted! I observed another gain of about 7% on my machine with about 100.000 documents
using your patch. So definitely +1

> DescendantSelfAxisQuery creates too many object instances
> ---------------------------------------------------------
>
>                 Key: JCR-1251
>                 URL: https://issues.apache.org/jira/browse/JCR-1251
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: jackrabbit-core, query
>            Reporter: Christoph Kiehl
>            Assignee: Christoph Kiehl
>            Priority: Minor
>             Fix For: 1.4
>
>         Attachments: DescendantSelfAxisQuery-patch.txt, JCR-1251.patch
>
>
> In DescendantSelfAxisQuery.DescendantSelfAxisScorer.isValid() there is an ArrayList and
an Integer instance created on every call. Since this method gets called really often during
queries the object creation/gc affects performance.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message