Skip to content

Commit 48a2d0e

Browse files
committed
Change the default number of threads
Following @jnthn advice. Closes #1065, maybe for good this time.
1 parent 94754ee commit 48a2d0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/Language/variables.pod6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,12 +1289,12 @@ L<Telemetry> has been loaded.
12891289
12901290
Note on usage of C<$*SCHEDULER>:
12911291
1292-
For the current Rakudo, by default this imposes a maximum of 16 threads on the methods
1293-
C<.hyper> and C<.race>, and other thread-pool classes that use that scheduler such as C<Promise>s or C<Supplie>s. To change the maximum number of threads, either set the
1292+
For the current (2018.04) Rakudo, by default this imposes a maximum of 64 threads on the methods
1293+
C<.hyper>, C<.race> and other thread-pool classes that use that scheduler such as C<Promise>s or C<Supplie>s. To change the maximum number of threads, you can either set the
12941294
environment variable C<RAKUDO_MAX_THREADS> before running perl6 or create a scoped copy
12951295
with the default changed before using them:
12961296
1297-
my $*SCHEDULER = ThreadPoolScheduler.new( max_threads => 64 );
1297+
my $*SCHEDULER = ThreadPoolScheduler.new( max_threads => 128 );
12981298
12991299
This behavior is not tested in the spec tests and is subject to change.
13001300

0 commit comments

Comments
 (0)