Skip to content

Commit

Permalink
Use dirty IO scheduler for loading buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
akash-akya committed Jan 3, 2025
1 parent 422fcfe commit 27aec2e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions c_src/vix.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,11 @@ static ErlNifFunc nif_funcs[] = {
0},

/* VipsForeign */
{"nif_foreign_find_load", 1, nif_foreign_find_load,
ERL_NIF_DIRTY_JOB_IO_BOUND}, // it might read bytes form the file
{"nif_foreign_find_load", 1, nif_foreign_find_load, 0},
{"nif_foreign_find_save", 1, nif_foreign_find_save, 0},
{"nif_foreign_find_load_buffer", 1, nif_foreign_find_load_buffer, 0},
{"nif_foreign_find_load_buffer", 1, nif_foreign_find_load_buffer,
ERL_NIF_DIRTY_JOB_IO_BOUND},
// it might read bytes form the file
{"nif_foreign_find_save_buffer", 1, nif_foreign_find_save_buffer, 0},
{"nif_foreign_find_load_source", 1, nif_foreign_find_load_source,
ERL_NIF_DIRTY_JOB_IO_BOUND}, // it might read bytes from source
Expand Down

0 comments on commit 27aec2e

Please sign in to comment.