On Fri, Feb 3, 2012 at 8:10 PM, Yang <[email protected]> wrote:
> I profiled our application that runs geotools lookup, with yourkit,
>
> it turns out that Coordinates objects take up the great majority of memory
> consumption; and the creation of Coordinates
> takes about 8% of cpu time.
>
> maybe this is a place where relatively less investigation/improvement would
> lead to big performance gains?

This is a well known problem, Coordinate[] or packed coordinate sequences
could both be good choices depending on what you do with them.

If the geometry need all to go though topological operations stick
with Coordinate[],
JTS will generate them on the fly anyways, otherwise specify a
CoordinateSequenceFactory
as a Query Hint (see the Hints class for the key) to have the code use
a specific
coordinate sequence class

Cheers
Andrea



-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to