D 2017-01-27T01:33:42.704
J icomment I\sknow\salready\sthis\sissue\s(or\sthe\ssame\sby\scomparable\sone\swith\susage\sof\s`after\s0`\sinstead\sof\s`after\sidle`).\r\nAnd\sI've\sa\sbranch\swhere\sit\sis\sfixed,\swould\stry\sto\sport\sit\sin\stcl-core.\r\n\r\nBTW.\sIt's\scurrently\spossible\sas\sreplacement\sfor\sthis\sto\suse\sthe\sthread::send\s-async\sto\sself\s(needed\sthread\spackage).\r\nI\sknown\sit\snot\sreally\sthe\ssame\sas\safter\sidle,\sbut...\r\n\r\nSo\sJFYI\s(hope\sit\shelps):\r\n```\r\npackage\srequire\sThread\r\n\r\nproc\sstack_after_idle\s{howmuch}\s{\r\n\s\s\s\stime\s{\r\n\s\s\s\s\s\s\s\sthread::send\s-async\s[thread::id]\s{\r\n\s\s\s\s\s\s\s\s\s\s\s\s#\sDo\ssomething.\r\n\s\s\s\s\s\s\s\s\s\s\s\sset\sfoo\sbar\r\n\s\s\s\s\s\s\s\s}\r\n\s\s\s\s}\s$howmuch\r\n}\r\n\r\nforeach\showmuch\s{\r\n\s\s\s\s10000\r\n\s\s\s\s20000\r\n\s\s\s\s40000\r\n\s\s\s\s60000\r\n}\s{\r\n\s\s\s\sstack_after_idle\s$howmuch\r\n\s\s\s\sset\sstart\s[clock\smilliseconds]\r\n\s\s\s\supdate\r\n\s\s\s\sputs\s"$howmuch:\s[expr\s{[clock\smilliseconds]\s-\s$start}]"\r\n}\r\n```\r\n\r\nYou'll\ssee\sit\shas\sa\slinear\sexecution\stime:\r\n\r\n10000:\s11\r\n20000:\s22\r\n40000:\s44\r\n60000:\s66
J login sebres
J mimetype text/plain
K 0520d17284500573d7c46aa88e0c6b4ebc9b6a02
U sebres
Z 0c858994d943c7764fd3caac61698aca