8 Aug 16:24
Created: (JCR-1715) Prevent excessive Path.Element instances
From: Marcel Reutegger (JIRA <jira <at> apache.org>
Subject: Created: (JCR-1715) Prevent excessive Path.Element instances
Newsgroups: gmane.comp.apache.jackrabbit.devel
Date: 2008-08-08 14:25:44 GMT
Subject: Created: (JCR-1715) Prevent excessive Path.Element instances
Newsgroups: gmane.comp.apache.jackrabbit.devel
Date: 2008-08-08 14:25:44 GMT
Prevent excessive Path.Element instances
----------------------------------------
Key: JCR-1715
URL: https://issues.apache.org/jira/browse/JCR-1715
Project: Jackrabbit
Issue Type: Improvement
Components: jackrabbit-core, jackrabbit-spi-commons
Reporter: Marcel Reutegger
Priority: Minor
Even when a CachingHierarchyManager is used jackrabbit creates a lot of Path.Element instances. The
internally used PathMap (spi-commons) creates new Path.Element instances whenever a path is
constructed, even when the path is constructed from cached PathMap.Elements.
Running a test with 10k nodes results in 250k Path.Element instances being created and held in memory
(mostly for events).
RSS Feed