I'm writing a simple Swing app to render Tiger files. 
I'm using StreamingRenderer to do this.  The file is
huge so I can't load the entire thing into memory. 
Obviously, rendering is slow (which is to be
expected).

But here's my question:  I have the same data loaded
into postgis being served as a WMS through GeoServer. 
Digging down into the code, I see that GeoServer is
also using StreamingRenderer.  The thing is, GeoServer
tears right through the file - less than 2 seconds
where my Swing version takes over 30 seconds.  

There are several differences between these two, but
I'm not sure which one is allowing StreamingRenderer
tot work so much better with my GeoServer install. 
The obvious difference is the datastore - tiger files
verses postgis.  Another difference are the styles -
the tiger version causes every line to be drawn while
the postgis one uses a SLD file that causes much less
rendering.

Is the difference in performance because of the
datastore?  Or because there is less painting going
on?  Or is the postgis one passing fewer features to
be evaluated?mmI'm sure I could figure this out
through stepping through the code and good ole trial
and error.  If someone already has some insight on
where the performance differences are coming from, I'd
appreciate it!

Thanks,

Todd

The only "dumb question" is the one you were too afraid to ask.
________________________________________
Check out RouteRuler - Free software for runners, cyclists, walkers, etc.
http://routeruler.sourceforge.net
________________________________________
Get a handle on your data with "pocOLAP", the "little" OLAP project
http://pocolap.sourceforge.net
________________________________________

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to