diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-04-06 21:53:46 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-04-06 21:53:46 +0000 |
commit | ad639bfb68f3fce4864d833950ed2ff9dd1cb28d (patch) | |
tree | 0f94b8b59215fe8d987ae34bd2793fcc3961cadd /op.h | |
parent | bfd0ff222f043bea86c0b0e7700eeab47f675d46 (diff) | |
download | perl-ad639bfb68f3fce4864d833950ed2ff9dd1cb28d.tar.gz |
Only append ?? match ops to the list used by reset. This saves memory
and time.
p4raw-id: //depot/perl@30857
Diffstat (limited to 'op.h')
-rw-r--r-- | op.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -326,6 +326,11 @@ struct pmop { REGEXP * op_pmregexp; /* compiled expression */ #endif U32 op_pmflags; + /* This field is only needed so that PMOPs can delete themselves from the + list held by the stash. In turn, that list is only needed for reset + to work correctly, and is now only a list of ops used by ?? matches, + which are rare. Hence it would be useful if we could find a way to + shave it. */ #ifdef USE_ITHREADS char * op_pmstashpv; #else |