tighter mem handling in tebc
Open1698093fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 18 years ago
Descriptionplain2007-04-11 03:11:12
The enclosed patch causes that only the depth of the catch ranges be computed: this allows for tighter mem handling in tebc, which needs to alloc memory for each catch nesting level. OTOH: (1) the nesting level of loops is an interesting datum for stats and debugging, and it gets lost (2) the mem required for each catch nesting level is just sizeof(Tcl_Obj *) - nothing. So overestimating it as now is cheap. Also, bodies with very deep nesting of loop bodies should be very rare. This is a RFC.
msoferplain2007-04-11 10:11:15
File Added - 224477: exceptDiff2
msoferplain2007-04-11 10:13:09
Logged In: YES user_id=148712 Originator: YES Forget for now - segfaults :(
msoferplain2007-04-11 10:29:20
File Added - 224480: exceptDiff3 Logged In: YES user_id=148712 Originator: YES Sorry, wrong patch - corrected now. File Added: exceptDiff3
msoferplain2007-04-11 10:29:21
File Deleted - 224477:
msoferplain2007-04-11 10:34:18
File Deleted - 224480: File Added - 224481: exceptDiff4 Logged In: YES user_id=148712 Originator: YES File Added: exceptDiff4
dkfplain2007-04-11 16:00:52
Logged In: YES user_id=79902 Originator: NO I'm not 100% sure that the comment is maximally informative :-) but the technical content of the patch looks reasonable. I am left wondering whether it would be possible to have some way of detecting the type of exception range at compile time, allowing for some streamlining of the compiler as well as TEBC.
dkf Ticket [1698093fff]: 1 change
[History diff]2008-06-13 17:44:49
Log in (anonymous is fine) to add a comment.
Attachments:
- exceptDiff4 [download] added by msofer on 2007-04-11 10:34:17. [details]