projects
/
gitmo/Moose.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Refactored native trait inlining some more - added an optimized path to avoid copying...
[gitmo/Moose.git]
/
lib
/
Moose
/
Meta
/
Method
/
Accessor
/
Native
/
String
/
append.pm
diff --git
a/lib/Moose/Meta/Method/Accessor/Native/String/append.pm
b/lib/Moose/Meta/Method/Accessor/Native/String/append.pm
index
0c31f30
..
7652d87
100644
(file)
--- a/
lib/Moose/Meta/Method/Accessor/Native/String/append.pm
+++ b/
lib/Moose/Meta/Method/Accessor/Native/String/append.pm
@@
-18,4
+18,10
@@
sub _potential_value {
return "( $slot_access . \$_[0] )";
}
+sub _inline_optimized_set_new_value {
+ my ( $self, $inv, $new, $slot_access ) = @_;
+
+ return "$slot_access .= \$_[0];";
+}
+
1;