[Bps-public-commit] r15045 - in Prophet/trunk: .

sartak at bestpractical.com sartak at bestpractical.com
Tue Aug 12 07:12:52 EDT 2008


Author: sartak
Date: Tue Aug 12 07:12:51 2008
New Revision: 15045

Modified:
   Prophet/trunk/   (props changed)
   Prophet/trunk/lib/Prophet/Replica/Native.pm

Log:
 r69346 at onn:  sartak | 2008-08-12 07:12:44 -0400
 Don't perform the same hash lookup three times in a row


Modified: Prophet/trunk/lib/Prophet/Replica/Native.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/Replica/Native.pm	(original)
+++ Prophet/trunk/lib/Prophet/Replica/Native.pm	Tue Aug 12 07:12:51 2008
@@ -248,10 +248,12 @@
 sub _write_record {
     my $self = shift;
     my %args = validate( @_, { record => { isa => 'Prophet::Record' }, } );
+    my $record = $args{'record'};
+
     $self->_write_serialized_record(
-        type  => $args{'record'}->type,
-        uuid  => $args{'record'}->uuid,
-        props => $args{'record'}->get_props
+        type  => $record->type,
+        uuid  => $record->uuid,
+        props => $record->get_props,
     );
 }
 



More information about the Bps-public-commit mailing list