Efficiency patchlet for pp_aassign()
[p5sagit/p5-mst-13.2.git] / pp_hot.c
index cbc2b95..cbc19d5 100644 (file)
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -612,6 +612,7 @@ PP(pp_aassign)
            magic = SvMAGICAL(ary) != 0;
            
            av_clear(ary);
+           av_extend(ary, lastrelem - relem);
            i = 0;
            while (relem <= lastrelem) {        /* gobble up all the rest */
                sv = NEWSV(28,0);