Permalink
Browse files

Note inlining improvement from @ilmari.

  • Loading branch information...
1 parent 5089872 commit e07b57aa495c76353aaba4d49169a06753297dfd @theory committed Feb 13, 2013
Showing with 6 additions and 0 deletions.
  1. +5 −0 ChangeLog
  2. +1 −0 lib/Pod/Simple/BlackBox.pm
View
5 ChangeLog
@@ -19,6 +19,11 @@
Fixed hash order dependency test failures on Perl 5.17. Thanks to
Yves Orton for the patch.
+ Inlined the code that tries to guess a Pod file's encoding. This
+ reduces the time Pod::Simple takes to build the core Perl
+ documentation by 15-20%. Thanks to Dagfinn Ilmari Mannsåker for
+ the patch!
+
2012-08-14 David E. Wheeler <david@justatheory.org>
* Release 3.23
View
1 lib/Pod/Simple/BlackBox.pm
@@ -123,6 +123,7 @@ sub parse_lines { # Usage: $parser->parse_lines(@lines)
}
}
+ # Try to guess encoding. Inlined for performance reasons.
if(!$self->{'parse_characters'} && !$self->{'encoding'}
&& ($self->{'in_pod'} || $line =~ /^=/s)
&& $line =~ /[^\x00-\x7f]/

0 comments on commit e07b57a

Please sign in to comment.