ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/eg/bench
(Generate patch)

Comparing Coro/eg/bench (file contents):
Revision 1.1 by root, Tue Jul 3 05:05:45 2001 UTC vs.
Revision 1.2 by root, Tue Jul 10 01:43:21 2001 UTC

26 26
27$b->resume; # the first resume is slow because it allocates all the memory 27$b->resume; # the first resume is slow because it allocates all the memory
28 28
29$main = $Coro::main; 29$main = $Coro::main;
30 30
31sub transfer { 31#*transfer = \&Coro::_transfer;
32 Coro::_transfer($_[0], $_[1]); 32sub transfer { Coro::_transfer($_[0], $_[1]) }
33}
34 33
35$c = Coro::_newprocess { 34$c = Coro::_newprocess {
36 while() { 35 while() {
37 transfer($c, $main); transfer($c, $main); transfer($c, $main); 36 transfer($c, $main); transfer($c, $main); transfer($c, $main);
38 } 37 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines