[Jifty-commit] r6056 - Template-Declare/lib/Template/Declare
Jifty commits
jifty-commit at lists.jifty.org
Mon Dec 1 04:20:01 EST 2008
Author: ruz
Date: Mon Dec 1 04:20:01 2008
New Revision: 6056
Modified:
Template-Declare/lib/Template/Declare/Buffer.pm
Log:
* micro-optimization, but append is called too often
Modified: Template-Declare/lib/Template/Declare/Buffer.pm
==============================================================================
--- Template-Declare/lib/Template/Declare/Buffer.pm (original)
+++ Template-Declare/lib/Template/Declare/Buffer.pm Mon Dec 1 04:20:01 2008
@@ -7,11 +7,8 @@
__PACKAGE__->mk_accessors('data');
sub append {
- my $self = shift;
- my $content = shift;
-
no warnings 'uninitialized';
- $self->data( $self->data . $content );
+ $_[0]->data( $_[0]->data . $_[1] );
};
sub clear {
More information about the Jifty-commit
mailing list