[PostGIS] #6156: ST_AsMVT: pack tiles without protobuf-c's generic packer

PostGIS trac at osgeo.org
Sun Nov 15 10:59:08 PST 2026


#6156: ST_AsMVT: pack tiles without protobuf-c's generic packer
-----------------------------+---------------------------
 Reporter:  johncarmack1984  |      Owner:  pramsey
     Type:  enhancement      |     Status:  new
 Priority:  medium           |  Milestone:  PostGIS 3.8.0
Component:  postgis          |    Version:  3.6.x
 Keywords:  mvt              |
-----------------------------+---------------------------
 ST_AsMVT packs the finished tile with `vector_tile__tile__pack`, which
 walks protobuf-c's field descriptors for every feature and value twice,
 once to size the tile and once to write it. That packing is 11% of the
 instructions in a Berlin z14 roads tile and 14% in a points tile. GH-1192
 writes the tile directly, in the same bytes.

 ||= =||= Before =||= After =||= Ratio =||
 || Berlin z14 points tile, tiles/s, 8 clients || 154 || 165 || 1.07 ||
 || Berlin z14 roads tile, tiles/s, 4 clients || 633 || 661 || 1.04 ||
 || Packing a 100,000-point tile, instructions || 140.5M || 42.0M || 3.3x
 fewer ||

 94,047 Berlin building tiles and 17 tiles across five layers come out byte
 for byte the same as master. This is for 3.8.

 Pull request: https://github.com/postgis/postgis/pull/1192
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/6156>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list