Skip to content

Commit

Permalink
Change the NUMSTREAMS define to 64. Lower memory use and current tests
Browse files Browse the repository at this point in the history
show that there isn't much, if any, performance impact
  • Loading branch information
rapier1 committed Sep 12, 2023
1 parent 3159399 commit 308dcc5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cipher-chachapoly-libcrypto-mt.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@
/* the goal is to ensure that main is never
* waiting on the worker threads for keystream data */
#define NUMTHREADS 1
#define NUMSTREAMS 128

/* 64 seems to be a pretty blance between memory and performance
* 128 is another option with somewhat higher memory consumption */
#define NUMSTREAMS 64

/* END TUNABLES */

Expand Down

0 comments on commit 308dcc5

Please sign in to comment.