Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subtle postgis optimization re: bbox formation #2287

Open
mapserver-bot opened this issue Apr 3, 2012 · 2 comments
Open

subtle postgis optimization re: bbox formation #2287

mapserver-bot opened this issue Apr 3, 2012 · 2 comments

Comments

@mapserver-bot
Copy link
Collaborator

Reporter: springmeyer
Date: 2011/09/15 - 23:34
In testing mapnik rendering against postgis I've played with using either BOX3D or GeomFromText to construct the geometry to use for bbox tests. I've noticed that using BOX3D is about 100 ms faster. Not sure if this is significant but just in case it might be faster I thought I would mention it (feel free to close). Mapnik code is here: http://trac.mapnik.org/browser/trunk/plugins/input/postgis/postgis_datasource.cpp#L360

And here was the simple benchmark (using the style from the foss4g2011 wms benchmark) in mapnik format:

mapnik-speed-check foss4g-2011/map.xml 3 -11486337,4785617.3,-11486283,4785655.2

# GeomFromText
min: 1299.6ms | avg: 1332.3ms | total: 3.9968s
min: 1296.9ms | avg: 1298.9ms | total: 3.8968s

# box3d
min: 1097.2ms | avg: 1098.9ms | total: 3.2968s
min: 1096.8ms | avg: 1098.9ms | total: 3.2968s
@mapserver-bot
Copy link
Collaborator Author

Author: pramsey
Date: 2011/09/16 - 17:11
100ms is a freaking eternity. I'll have to see if I can reproduce this. Thanks for the note.

@mapserver-bot
Copy link
Collaborator Author

Author: springmeyer
Date: 2011/09/16 - 21:31
k. if you have any trouble reproducing just ping here and I will look more into it on the mapnik side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant