Overview
| Artifact ID: | eff31e1243913a5c568d52f182ed20d9166127d3 |
|---|---|
| Ticket: | 983660ffffffffffffffffffffffffffffffffff
Leak of unshared literals at interp deletion |
| User & Date: | msofer on 2004-07-08 05:47:14 |
Changes
- icomment:
Logged In: YES user_id=148712 The performance issue is: * before the patch, the interp deletion loops through the interp's literal table releasing all literals in the interp (in a suboptimal manner, but just one loop and with no hashing) * after the patch, every proc in the interp will loop through its own literal array releasing the literals - and doing a hash lookup for each one. No literals remain for the overall interp deletion loop. A possible solution is to register unshared literals in the interp's table with refCount -1 (to signal that they should not be shared). Note that this is actually specified in the comments (tclInt.h line 921), but not done in the code.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"