bind9/bin/named
Michał Kępień 4797b2a155
Stop prettifying JSON statistics
Passing the JSON_C_TO_STRING_PRETTY flag to
json_object_to_json_string_ext() makes the latter produce prettified
JSON output.  This results in a huge amount of redundant whitespace
being inserted into each HTTP response (whitespace amounts to about 40%
of the entire JSON payload).

The bandwidth cost can be amortized by enabling HTTP compression on the
client side ("Accept-Encoding: deflate"), but that does not affect the
size of data at rest.

Use the JSON_C_TO_STRING_PLAIN flag instead of JSON_C_TO_STRING_PRETTY
to minimize the size of JSON responses sent via the statistics channel.
External tools should be used for prettifying JSON data.
2025-10-27 10:56:38 +01:00
..
include cfg_parse_ functions internally handle the parser 2025-10-23 13:01:08 -07:00
.gitignore Complete rewrite the BIND 9 build system 2020-04-21 14:19:48 +02:00
bind9.xsl Expose the incoming transfers' rates in the statistics channel 2025-02-20 09:32:55 +00:00
builtin.c make getoriginnode implementation optional 2025-09-15 16:11:50 +00:00
config.c cfg_parse_ functions internally handle the parser 2025-10-23 13:01:08 -07:00
control.c Add and use global memory context called isc_g_mctx 2025-08-04 11:29:26 +02:00
controlconf.c cfg_parse_ functions internally handle the parser 2025-10-23 13:01:08 -07:00
dlz_dlopen_driver.c Use clang-format-20 to update formatting 2025-06-25 12:44:22 +10:00
fuzz.c Change the loopmgr to be singleton 2025-07-23 22:44:16 +02:00
geoip.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
log.c debug level was ignored when logging to stderr 2025-05-13 12:47:23 -07:00
logconf.c Use ControlStatementsExceptControlMacros for SpaceBeforeParens 2025-08-19 07:58:33 +02:00
main.c update cfg_obj_attach/destroy 2025-10-23 13:01:02 -07:00
meson.build replace the build system with meson 2025-06-11 10:30:12 +03:00
named.conf.rst Remove the configblock sphinx extension 2025-06-23 13:45:09 +03:00
named.rst Finalize removal of memory debug flags size and mctx 2024-12-06 02:29:20 +00:00
os.c implement the systemd notification protocol manually, drop libsystemd 2025-03-27 22:52:41 +03:00
server.c restore the former change_directory logging 2025-10-23 13:01:31 -07:00
statschannel.c Stop prettifying JSON statistics 2025-10-27 10:56:38 +01:00
tkeyconf.c Simplify named_tkeyctx_fromconfig() 2025-10-06 13:19:50 +02:00
transportconf.c Use ControlStatementsExceptControlMacros for SpaceBeforeParens 2025-08-19 07:58:33 +02:00
tsigconf.c Use ControlStatementsExceptControlMacros for SpaceBeforeParens 2025-08-19 07:58:33 +02:00
xsl_c.in replace the build system with meson 2025-06-11 10:30:12 +03:00
xsl_p.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
zoneconf.c store the zone configuration object in the zone 2025-10-23 13:01:06 -07:00