It's possible to write the dup of struct reg_substr_datum with a
authorNicholas Clark <nick@ccl4.org>
Fri, 23 Mar 2007 23:32:19 +0000 (23:32 +0000)
committerNicholas Clark <nick@ccl4.org>
Fri, 23 Mar 2007 23:32:19 +0000 (23:32 +0000)
commita86a1ca71b6cc69a4a01c17f91f95d556810d9f3
tree4cf05668194857f3c6b266ce41b4f59e5306cf4a
parent947077407b91d1804ad3931bbfee74e90819e636
It's possible to write the dup of struct reg_substr_datum with a
memcpy() replacing the member by member copy. Curiously gcc's -Os
produces the same sized code, but not all optimisers may manage this.
Also, by reading and re-assigning to the copied data for the sv_dup()s
we hope to avoid any cache misses on the copied from data.

p4raw-id: //depot/perl@30740
regcomp.c