Skip to content

Commit

Permalink
determinise: Adjust SMALL_INPUT_LIMIT.
Browse files Browse the repository at this point in the history
I benchmarked with a range of values 8 to 4096, somewhere around
32 - 256 worked particularly well, and it started to become slower
beyond that, so set it to <32 for now.
  • Loading branch information
silentbicycle committed Jan 9, 2024
1 parent 2ff7742 commit 3a04a1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libfsm/determinise.c
Original file line number Diff line number Diff line change
Expand Up @@ -2065,7 +2065,7 @@ cmp_fsm_state_t(const void *pa, const void *pb)
return a < b ? -1 : a > b ? 1 : 0;
}

#define SMALL_INPUT_LIMIT 15
#define SMALL_INPUT_LIMIT 255
#define SMALL_INPUT_CHECK 0

#ifdef SMALL_INPUT_LIMIT
Expand Down

0 comments on commit 3a04a1c

Please sign in to comment.