Haskellã«ãã並åã»ä¸¦è¡ããã°ã©ãã³ã° Simon Marlow å±±ä¸ ä¼¸å¤« ãã¡ãã®æ¼ç¿åé¡ã®è§£çã stackoverflow ã¨ã github ã«ä¸ãã£ã¦ããã ãã©ãééãã¦ãããªã®ã§èªåãæ¸ãããã®ã解説ãã¦ããã åé¡ã®ä¾ãèªãã¨ãä¸åã®forkã§çç£ããè¦ç´ æ°ã¯200ã ãã©ãæ¶è²»è å´ã100åç®ãæ¶è²»ããã¨ããã§æ¬¡ã®forkãèµ°ãå§ããå¿ è¦ããããã¨ãããããããããªããªãé£ããã ã¾ãç°¡åãªã¨ãããããåã¯åé¡æã§ä¸ãããã¦ããã®ã§ãstreamFoldã¯èªæã§ãããForkã¯Consãæã£ã¦ããã®ã§ãforkãã以å¤ã¯Consã¨åãäºãããã ãã§ããã streamFold :: (a -> b -> a) -> a -> Stream b -> Par a streamFold fn !acc instrm = do ilst <- get instrm case
{{#tags}}- {{label}}
{{/tags}}