Skip to content

Commit

Permalink
[pmc] StringBuilder.substr needs no WB
Browse files Browse the repository at this point in the history
GH #1123. 1.14% faster
  • Loading branch information
Reini Urban committed Oct 19, 2015
1 parent 6f1a676 commit 06cee23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pmc/stringbuilder.pmc
Expand Up @@ -344,7 +344,7 @@ Returns a copied substring of the STRING.

*/

VTABLE STRING *substr(INTVAL offset, INTVAL length) { /* note: was ': n o _ w b' */
VTABLE STRING *substr(INTVAL offset, INTVAL length) :no_wb {
STRING *buffer;
GET_ATTR_buffer(INTERP, SELF, buffer);
/* STRING_substr already creates a copy for us, GH #1123 */
Expand Down

0 comments on commit 06cee23

Please sign in to comment.