mirror of
https://github.com/json-c/json-c.git
synced 2026-03-30 10:29:06 +08:00
json_tokener: optimize parsing of integer values
speedup for 32-bit: ~8% speedup for 64-bit: ~9%
This commit is contained in:
@@ -90,6 +90,7 @@ extern int json_object_to_fd(int fd, struct json_object *obj, int flags);
|
||||
const char *json_util_get_last_err(void);
|
||||
|
||||
|
||||
extern int json_parse_sanitized_int64(const char *buf, size_t len, int64_t *retval);
|
||||
extern int json_parse_int64(const char *buf, int64_t *retval);
|
||||
extern int json_parse_double(const char *buf, double *retval);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user