Permalink
Browse files

S_multiconcat() Use faster variant counting

  • Loading branch information...
khwilliamson committed Nov 23, 2017
1 parent 89728e7 commit 255454aa002d1cf2f7041d5aa5aedb6a815203da
Showing with 2 additions and 7 deletions.
  1. +2 −7 op.c
View
9 op.c
@@ -3067,13 +3067,8 @@ S_maybe_multiconcat(pTHX_ OP *o)
/* see if any strings would grow if converted to utf8 */
if (!utf8) {
char *p = (char*)argp->p;
STRLEN len = argp->len;
while (len--) {
U8 c = *p++;
if (!UTF8_IS_INVARIANT(c))
variant++;
}
variant += variant_under_utf8_count((U8 *) argp->p,
(U8 *) argp->p + argp->len);
}
}

0 comments on commit 255454a

Please sign in to comment.