Sunburned Surveyor schrieb: > [...] > Sascha's idea about eliminating duplicate coordinate objects in large > polygon layers and linesting layers is interesting. I have some > questions for him on that, but I will put them in another thread so > things don't get so confusing. > [...]
If they are worthy a new thread ... > [...] > I'm sorry if I confused things. I didn't say we should implement > Sascha's idea, just that I thought it was interesting. :] For now: We have side effects. Martin has at least one plug-in which modifies coordinates in place, Michaël is modifying z-values in place, Larry stated that the ISA tools are full of coord.x = ... stuff. My initial question was asking for side effects so I see these facts as show stoppers for the idea. It would be nice to have a "immutable policy" for coords and geometries but we'll have to catch all the horses first. (Another annoying lock-in problem of a plug-in system that is open too wide ... - 2¢) BTW: I'm not sure if the CoordinateSequence idea will save a lot of memory. It may be right that the data is packed more tightly and the object overhead would be trimmed, but we might also see a lot of temporal garbage when using the data. JTS is not 'streamlined' with this idea so I suspect a lot of internal 'new Coordinate(..)'s when we're transforming the data (e.g rendering). AFAIK the packed versions of CoordinateSequence have a SoftReference cache mechanism for toArray() inside. I don't know how often this is really called, but objects hanging at SoftReference tombstones are kept quiet long by the GC. ... Just as a hint. Evaluating this maybe connected with some work and at the end it might turn out that there will be probably little to no gain. If we further take into account that only large data sets with a lot of shared vertices will profit from this I would recommend to think about the ratio effort/work. Regards, Sascha ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel