Skip to content

Commit

Permalink
yield: reduce DEFAULT_THREAD_SLEEP_THRESHOLD timeout (JuliaLang#37016)
Browse files Browse the repository at this point in the history
This defines how much time we waste before letting another process run.
Until we have performance measurements, this should probably be small.

Closes JuliaLang#36952
  • Loading branch information
vtjnash committed Aug 14, 2020
1 parent 805be2d commit 4441e3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@

// controls for when threads sleep
#define THREAD_SLEEP_THRESHOLD_NAME "JULIA_THREAD_SLEEP_THRESHOLD"
#define DEFAULT_THREAD_SLEEP_THRESHOLD 4*1000*1000 // nanoseconds (4ms)
#define DEFAULT_THREAD_SLEEP_THRESHOLD 16*1000 // nanoseconds (16us)

// defaults for # threads
#define NUM_THREADS_NAME "JULIA_NUM_THREADS"
Expand Down

0 comments on commit 4441e3a

Please sign in to comment.