Do you have any example where your $was_updated flag cannot be done away with completely and replaced with a simple test against @fixups?
onTime { my $attr = $NODE->getAttr("something"); my $val = $attr->getValue(); foreach (@fixups) { $val += $_; } if ( @fixups ) { $attr->setValue($val); $attr->doCallbacks(); } @fixups = (); }
If not, I'm kinda at a loss to understand the difficulty.
In reply to Re^6: Quickly detecting variable writes
by BrowserUk
in thread Quickly detecting variable writes
by sfink
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |