in reply to Re^2: "Auto" vivifying shared data structures
in thread "Auto" vivifying shared data structures
would consume about 1Mb, with each thread having a cached copy of the string at the point it was accessed.my $s : shared = 'a' x 10_000; for (1..100) { async { my $l = length $s; sleep } }
Nested structures are more complicated than that, but roughly speaking the worst-case isn't as bad as the scalar case above.
Dave.
|
|---|