-
-
Save muraiki/24c7dac46733b58abcfb to your computer and use it in GitHub Desktop.
This uses a huge amount of CPU even with no events...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This uses a huge amount of CPU (it gets auto-killed by the OS after hitting 180% or so) | |
# even with no filesystem events occurring... | |
IO::Notification.watch-path('.')\ | |
.map(*.path)\ | |
.grep(* ~~ /hhvm_.*\.sock/)\ | |
.map(*.IO)\ | |
.grep({ .e })\ | |
.unique(:expires(1))\ | |
.tap(-> $foo { | |
say "$foo.perl() - $foo.e()"; | |
}); | |
sleep(1000); |
Hello, muraiki, pleasee feel free file a bug to RT, thanks.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I remove the .unique line, it works without a problem.