mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
Don't shrink string buffers before returning them as JSON objects.
It takes a little bit of time, and it's already not shrinking them for number objects.
This commit is contained in:
@@ -499,7 +499,6 @@ again:
|
||||
|
||||
json_object *s = add_object(j, JSON_STRING);
|
||||
if (s != NULL) {
|
||||
val.buf = realloc(val.buf, val.n + 1);
|
||||
s->string = val.buf;
|
||||
s->length = val.n;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user