I agree - thanks Andrea! So if I understand your email we have: shapefile: 4 seconds to 5 seconds postgis: 46 seconds to 67 seconds
My guess is similar to Justin; in tracing through I saw a lot of time spent creating Attribute objects (and as part of the creation process a lot of validation checks are performed; sometimes repeatedly). I implemented an array based SimpleFeature class that created lazy Attribute objects as needed; with all the branches and merges I am not sure that the implementation is still around. However you should find that such approach would make direct creation possible; and I hope we can decide to turn off validation checks on creation. Jody > Thanks Andrea, it is good to finally have numbers to work with. Not > surprising that SimpleFeatureBuilder is slow, not designed or > implemented with optimization in mind. Do you have a better idea of > where the time is being spent? I suspect it is in all the intermediate > Attribute object creation. > > > >> Cheers >> Andrea >> >> ------------------------------------------------------------------------- >> SF.Net email is sponsored by: >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >> _______________________________________________ >> Geotools-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/geotools-devel >> >> !DSPAM:4007,475c04d0221342092453641! >> >> > > > ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
