Opened 5 years ago
Closed 5 years ago
#4615 closed enhancement (fixed)
Optimize lwout_geojson output
Reported by: | Algunenano | Owned by: | Algunenano |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 3.1.0 |
Component: | postgis | Version: | master |
Keywords: | Cc: |
Description
Related to https://trac.osgeo.org/postgis/ticket/4543
After #4543 is applied, around half the time spent in the output of ST_AsGeoJSON of a big polygon (>100k vertices) is spent in sprintf calls, mainly calculating the length of the strings (which we already know). It should be possible to remove all this time by replacing it a memcpy calls or writting the doubles directly in the buffer (instead of writting them in an auxiliar variable and then into the buffer).
Note:
See TracTickets
for help on using tickets.
In 892fcde0/git: