yajl_gen_integer calls sprintf for integer formatting. By using yajl_gen_number, we can provide formatted numbers ourselves, thereby taking advantage of faster formatting in fmt.
Code is pretty much the same as for entry(double), except that we're formatting integer numbers.
yajl_gen_integer calls
sprintf
for integer formatting. By usingyajl_gen_number
, we can provide formatted numbers ourselves, thereby taking advantage of faster formatting in fmt.Code is pretty much the same as for entry(double), except that we're formatting integer numbers.