Skip to content

Commit

Permalink
Supervising 100 times a second is likely enough
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Sep 14, 2017
1 parent de311f4 commit 3b98fb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/ThreadPoolScheduler.pm
Expand Up @@ -365,7 +365,7 @@ my class ThreadPoolScheduler does Scheduler {
# The supervisor sits in a loop, mostly sleeping. Each time it wakes up,
# it takes stock of the current situation and decides whether or not to
# add threads.
my constant SUPERVISION_INTERVAL = 0.005;
my constant SUPERVISION_INTERVAL = 0.01;
method !maybe-start-supervisor() {
unless $!supervisor.DEFINITE {
$!supervisor = Thread.start(:app_lifetime, {
Expand Down

0 comments on commit 3b98fb9

Please sign in to comment.