Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-06-13
17:44 • Ticket [1698093fff] tighter mem handling in tebc status still Open with 1 ot... artifact: e00ff8b80f user: dkf
2007-04-11
16:00 • Ticket [1698093fff]: 4 changes artifact: 13c426f6d3 user: dkf
10:34 • Ticket [1698093fff]: 4 changes artifact: dd1aaae22e user: msofer
10:34 • Add attachment exceptDiff4 to ticket [1698093fff] artifact: b2fa3a54f4 user: msofer
10:29 • Ticket [1698093fff] tighter mem handling in tebc status still Open with 4 ot... artifact: 27831b943e user: msofer
10:29 • Ticket [1698093fff]: 5 changes artifact: c8993a5f98 user: msofer
10:13 • Ticket [1698093fff]: 5 changes artifact: d986d8fb7d user: msofer
10:11 • Ticket [1698093fff]: 4 changes artifact: 5183d4e8cd user: msofer
03:11 • New ticket [1698093fff]. artifact: 118d4f3da7 user: msofer

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: