Skip to content

Commit

Permalink
reduce idle CPU usage of Mojo::IOLoop slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 14, 2015
1 parent 258a84f commit 64bfe27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Changes
@@ -1,5 +1,6 @@

5.80 2015-02-14
5.80 2015-02-15
- Reduced idle CPU usage of Mojo::IOLoop slightly.

5.79 2015-02-13
- Fixed bug in Mojo::Reactor::Poll that caused excessive idle CPU usage.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop.pm
Expand Up @@ -204,7 +204,7 @@ sub _not_accepting {
sub _recurring {
my $self = shift;
$self->{accept} ||= $self->recurring($self->accept_interval => \&_accepting);
$self->{stop} ||= $self->recurring(1 => \&_stop);
$self->{stop} ||= $self->recurring(2 => \&_stop);
}

sub _remove {
Expand Down

0 comments on commit 64bfe27

Please sign in to comment.