Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2007-12-06
05:38 • Closed ticket [1845092fff]: channel Tcl_Obj type plus 7 other changes artifact: 81d050996f user: hobbs
03:49 • Add attachment channelobj.diff to ticket [1845092fff] artifact: 1c4b4e6dd3 user: hobbs
03:49 • Ticket [1845092fff] channel Tcl_Obj type status still Open with 4 other chan... artifact: 1c7033dbc4 user: hobbs
03:47 • Ticket [1845092fff]: 4 changes artifact: 7bf7fd5fc6 user: hobbs
03:41 • Ticket [1845092fff]: 4 changes artifact: 72025bbba2 user: hobbs
03:11 • Ticket [1845092fff]: 4 changes artifact: b955e8145d user: hobbs
2007-12-05
20:11 • New ticket [1845092fff]. artifact: 9d5258c1c8 user: hobbs

channel Tcl_Obj type

Closed / Fixed1845092fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-12-05 20:11:23
After noticing that as much as 15% of the runtime of a large gets-based cat is taken up in hash calls, I decided to implement a channel Tcl_Obj that obviates these calls.  It takes care to watch for tainted channels (and existing cut/splice tests exercise this).

The only thing I'd like to verify is that the way we mix the Tcl_Preserve/Release and Tcl_Obj doesn't cause any mem leaks.  I'm not seeing any, but another pair of eyes would be good.
hobbsplain2007-12-06 03:11:23
File Added - 257443: channelobj.diff
hobbsplain2007-12-06 03:41:51
File Deleted - 257443: 



File Added - 257448: channelobj.diff

Logged In: YES 
user_id=72656
Originator: YES

Updated patch the does Preserve in DupIntRep and makes NULL the updateString and setFromAny procs in the tclChannelType structure.
File Added: channelobj.diff
hobbsplain2007-12-06 03:47:43
File Added - 257449: channelobj2.diff

Logged In: YES 
user_id=72656
Originator: YES

File Added: channelobj2.diff
hobbsplain2007-12-06 03:49:29
File Deleted - 257449: 



File Added - 257450: channelobj.diff

Logged In: YES 
user_id=72656
Originator: YES

got the patch right this time ;)
File Added: channelobj.diff
hobbsplain2007-12-06 05:38:36
Logged In: YES 
user_id=72656
Originator: YES

Added to 8.5 after chat review.  Results in 10+% perf increase on procs like gets/puts 'cat' that have lots of channel looksup
Log in (anonymous is fine) to add a comment.

Attachments: