Overview
| Artifact ID: | af222e3559ae18c0f7ad229c4bac378d2562c517 |
|---|---|
| Ticket: | 2939073fffffffffffffffffffffffffffffffff
Unset PATTERN unsafe with trace-originated secondary unsets |
| User & Date: | ferrieux on 2010-02-03 17:02:09 |
Changes
- icomment:
Donal, you're re-discovering hot water ;-) The fact that [array unset *] + [trace add ... set ar($newkey) 1] leaves the array with an apparently random subset has been true since Day One of trace !!! To try to keep the discussion on tracks, two things : (1) please admit that HEAD currently has a leak that my latest patch fixes, at iso-semantics with Day One. (2) if we are to iron out the semantics at the cost of *** POTENTIAL INCOMPATIBILITY ***, indeed I've discussed it with Miguel when evaluating "thermonuclear solutions". I was suggesting the snapshot idea, and Miguel proposed to just rewind the iterator. (I still prefer the snapshot, because the rewind leads to quadratic behavior and may fire some unset traces more than once). But the snapshot also has a performance impact wrt current code, and would need to kick in only when unset traces are present (can we detect a single-key trace in O(1) ?).
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"