Coroã§ã¹ã¬ãããã¼ã«ã使ãã«ã¯async_poolã使ãã°ããã¯ããªã®ã§ãããä½ãèããã«ä½¿ãã¨ãã¾ããããªãå ´åãããã¾ãã æåã«ã¾ã¨ã é·ãã®ã§ã¾ãã¾ã¨ãã¨ãã¾ããã¾ã¨ããã¨åç´ãªè©±ã§ããasync_poolã使ãæã«ã¯ãåæã«ããããã®ã¹ã¬ãããå©ç¨ãéããªãããã«æ°ãã¤ãããã®ä¸ç¹ã«å°½ãã¾ãã ãã³ããã¼ã¯ãã¨ã£ã¦ã¿ã asyncã¨async_pool ã§ãã³ããã¼ã¯ãã¨ã£ã¦ã¿ãã¨ã以ä¸ã®ããã«ãªãã¾ãã my $tasks = 100; Benchmark::cmpthese 1000, { async => sub { my $sem = Coro::Semaphore->new( 1 - $tasks ); for(1 .. $tasks){ async { $sem->up }; } $sem->down; }, async_pool => sub { my $sem
{{#tags}}- {{label}}
{{/tags}}