diff options
author | Gergely Nagy <algernon@balabit.hu> | 2012-04-13 12:12:56 +0200 |
---|---|---|
committer | Gergely Nagy <algernon@balabit.hu> | 2012-04-13 12:12:56 +0200 |
commit | 3c009dee6e7ac9ecff02596db924790c0683a049 (patch) | |
tree | 15379f28fdf5c857085f05a770b2862caab5bddf /TODO.org | |
parent | 63fcf21f9a9f616880dfb9c7174b8694423a7f75 (diff) | |
download | libumberlog-3c009dee6e7ac9ecff02596db924790c0683a049.tar.gz libumberlog-3c009dee6e7ac9ecff02596db924790c0683a049.tar.xz libumberlog-3c009dee6e7ac9ecff02596db924790c0683a049.zip |
Format JSON ourselves, without json-c.
To make the library thinner, we now format JSON ourselves: there was
so little we used from json-c, that doing it ourselves is lighter and
faster.
With this commit, we have the architecture in place, with only a few
little things remaining to be done, such as escaping string values.
Signed-off-by: Gergely Nagy <algernon@balabit.hu>
Diffstat (limited to 'TODO.org')
-rw-r--r-- | TODO.org | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -97,7 +97,11 @@ systems where we would need to copy the thing around. We need a way to get the post-message key-value pairs some other way, or with using va_copy() and counting format strings and whatnot. -* TODO Remove json-c dependency +* WIP Remove json-c dependency +- Note taken on [2012-04-13 Fri 12:09] \\ + Work in progress: the buffer handling was moved to buffer.c, it does + the heavy lifting and JSON formatting. It does not do escaping yet, + however. We use very little of json-c, all we do is append key-value pairs, where both keys and values are always strings. We pretty much only use json-c to escape these for us, if so need be. |