Skip to content

Commit 083a785

Browse files
committed
Use 1MB page size for iterators notebooks.
1 parent f60aa7b commit 083a785

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

libyara/exec.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -470,10 +470,9 @@ int yr_execute_code(YR_SCAN_CONTEXT* context)
470470
yr_arena_create(1, 512 * sizeof(YR_OBJECT*), &obj_arena),
471471
yr_free(stack.items));
472472

473-
FAIL_ON_ERROR_WITH_CLEANUP(
474-
yr_notebook_create(512 * sizeof(YR_ITERATOR), &it_notebook),
475-
yr_arena_release(obj_arena);
476-
yr_free(stack.items));
473+
FAIL_ON_ERROR_WITH_CLEANUP(yr_notebook_create(1048576, &it_notebook),
474+
yr_arena_release(obj_arena);
475+
yr_free(stack.items));
477476

478477
#ifdef YR_PROFILING_ENABLED
479478
start_time = yr_stopwatch_elapsed_ns(&context->stopwatch);

0 commit comments

Comments
 (0)