Martin Desruisseaux wrote:
Jesse Eichar a écrit :
Since we are only interested in the geometry we made a query so that
only the geometry attribute is read from disk. As you know this
involves creating a new FeatureType, which in turn involves searching
for a FeatureTypeFactory using the FactoryFinder service. According
to the profiling I did it seems that a great deal of the time is
being spent in ClassLoader.getResourceAsStream() called at line 350
in FactoryFinder. Is there any caching of the Factories so the disk
is hit less?
org.geotools.factory.FactoryFinder (not to be confused with
org.geotools.referencing.FactoryFinder) is the previous factory
framework (I was not involved in this one), which is now marked as
deprecated but still used in various place like FeatureTypeFactory. As
you point out, org.geotools.factory.FactoryFinder do not performs any
caching.
Martin do you know when we deprecated this? This work may be needed to
get 2.2.x out regardless. Martin has sent me instructions on how to
upgrade before Jesse and they are in the developers guide.
Jody
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel