Improve json_object -> string performance

Removes variadic prints for ~3x performance improvement.
This commit is contained in:
Quentin Young
2017-02-02 17:16:26 +00:00
parent 8157784483
commit 9ff0f4987f
5 changed files with 19 additions and 82 deletions

View File

@@ -62,7 +62,7 @@ extern int
printbuf_memset(struct printbuf *pb, int offset, int charvalue, int len);
extern int
sprintbuf(struct printbuf *p, const char *msg, ...);
sprintbuf(struct printbuf *p, const char *msg);
extern void
printbuf_reset(struct printbuf *p);