Re: [geos-devel] Ability to preallocate the WKT stringstream buffer for really large geometries?

2013-02-21 Thread Mats Taraldsvik
> -Opprinnelig melding- > Fra: geos-devel-boun...@lists.osgeo.org [mailto:geos-devel- > boun...@lists.osgeo.org] På vegne av Mateusz Loskot > Sendt: 21. februar 2013 12:43 > Til: GEOS Development List > Emne: Re: [geos-devel] Ability to preallocate the WKT stringstream buffer for > really l

Re: [geos-devel] Ability to preallocate the WKT stringstream buffer for really large geometries?

2013-02-21 Thread Mats Taraldsvik
> -Opprinnelig melding- > Fra: geos-devel-boun...@lists.osgeo.org [mailto:geos-devel- > boun...@lists.osgeo.org] På vegne av Mateusz Loskot > Sendt: 21. februar 2013 12:42 > Til: GEOS Development List > Emne: Re: [geos-devel] Ability to preallocate the WKT stringstream buffer for > really l

Re: [geos-devel] Ability to preallocate the WKT stringstream buffer for really large geometries?

2013-02-21 Thread Mateusz Loskot
On 21 February 2013 09:41, Sandro Santilli wrote: > On Thu, Feb 21, 2013 at 09:22:36AM +, Mats Taraldsvik wrote: > >> Locally, I have modified the WKTWriter::writeNumber(double d) method to use >> boost::spirit::karma::real_generator for conversion of numbers, instead of >> std::stringstream

Re: [geos-devel] Ability to preallocate the WKT stringstream buffer for really large geometries?

2013-02-21 Thread Mateusz Loskot
On 21 February 2013 09:22, Mats Taraldsvik wrote: > Locally, I have modified the WKTWriter::writeNumber(double d) method to use > boost::spirit::karma::real_generator for conversion > of numbers, instead of std::stringstream. Just to back up this idea: http://alexott.blogspot.co.uk/2010/01/boos

Re: [geos-devel] Ability to preallocate the WKT stringstream buffer for really large geometries?

2013-02-21 Thread Mats Taraldsvik
> -Opprinnelig melding- > Fra: geos-devel-boun...@lists.osgeo.org [mailto:geos-devel- > boun...@lists.osgeo.org] På vegne av Sandro Santilli > Sendt: 21. februar 2013 10:42 > Til: GEOS Development List > Emne: Re: [geos-devel] Ability to preallocate the WKT stringstream buffer for > reall

Re: [geos-devel] Ability to preallocate the WKT stringstream buffer for really large geometries?

2013-02-21 Thread Sandro Santilli
On Thu, Feb 21, 2013 at 09:22:36AM +, Mats Taraldsvik wrote: > I have now submitted pull requests for bug #310 and increased performance and > preallocation on github, ready for review: > > https://github.com/libgeos/libgeos/pull/5 > > https://github.com/libgeos/libgeos/pull/4 What's the fu

Re: [geos-devel] Ability to preallocate the WKT stringstream buffer for really large geometries?

2013-02-21 Thread Mats Taraldsvik
I have now submitted pull requests for bug #310 and increased performance and preallocation on github, ready for review: https://github.com/libgeos/libgeos/pull/5 https://github.com/libgeos/libgeos/pull/4 Locally, I have modified the WKTWriter::writeNumber(double d) method to use boost::spirit