[Tile-serving] [openstreetmap/osm2pgsql] Implement and use our own JSON writer (PR #1836)

Jochen Topf notifications at github.com
Sat Nov 26 20:24:58 UTC 2022


@pnorman No, for two reasons:

a) It only appeared in Boost 1.7.5 from December 2020, so it will not be, for instance, available in Ubuntu 20.04.
b) As far as I can tell you first have to create a DOM-like tree of the data before you can serialize it. This adds a lot of overhead.

I looked at other JSON libraries, too. We don't want to use most of them because of (variants of) reason (a) or (b).

And the code in this PR is really small. It took me less than an hour to write and most of that was spent on figuring out how to serialize some special characters. At that point I asked myself whether it is really worth it to have an external dependency. I know, not invented-here-syndrome and all that...

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1836#issuecomment-1328108478
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/pull/1836/c1328108478 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20221126/cb8dc6bd/attachment.htm>


More information about the Tile-serving mailing list