Skip to content

Commit

Permalink
Removed useless parameter checking
Browse files Browse the repository at this point in the history
  • Loading branch information
amamchur committed Feb 15, 2014
1 parent bc037ef commit 52a320e
Show file tree
Hide file tree
Showing 14 changed files with 150 additions and 549 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,10 @@ - (IBAction)parse1:(id)sender {
clock_get_time(cclock, &start);

const int COUNT = 1000;
char parser[1024];
char parser_memory[jsonlite_parser_estimate_size(512)];
for (int i = 0; i < COUNT; i++) {
jsonlite_parser p = jsonlite_parser_init_memory(parser, sizeof(parser));
jsonlite_parser p = jsonlite_parser_init(parser_memory, sizeof(parser_memory), jsonlite_null_buffer);
jsonlite_parser_tokenize(p, buffer, l);
jsonlite_parser_cleanup(p);
}

clock_get_time(cclock, &end);
Expand Down
Loading

0 comments on commit 52a320e

Please sign in to comment.