|
2004-11-23
| ||
| 07:21 | • Closed ticket [1041072fff]: More efficient Tcl_AppendResult plus 6 other cha... artifact: 57a9ec3f98 user: dkf | |
|
2004-11-18
| ||
| 23:00 | • Ticket [1041072fff]: 4 changes artifact: 1bb8cdfaa1 user: dgp | |
| 06:08 | • Ticket [1041072fff]: 4 changes artifact: 244c994c3a user: dgp | |
| 06:08 | • Add attachment undo.patch to ticket [1041072fff] artifact: 04840b7ea8 user: dgp | |
| 06:07 | • Ticket [1041072fff] More efficient Tcl_AppendResult status still Open with 5... artifact: f57ae047b0 user: dgp | |
| 05:33 | • Ticket [1041072fff]: 4 changes artifact: 07df2ec4d6 user: dgp | |
| 05:33 | • Open ticket [1041072fff]. artifact: c55958e79f user: dgp | |
|
2004-10-27
| ||
| 01:16 | • Ticket [1041072fff]: 4 changes artifact: 2c91bd75ad user: dgp | |
|
2004-10-06
| ||
| 06:22 | • Ticket [1041072fff]: 8 changes artifact: 4a0d30d016 user: dkf | |
| 06:22 | • Closed ticket [1041072fff]. artifact: 4163ae5a7b user: dkf | |
| 05:50 | • Ticket [1041072fff]: 4 changes artifact: 3054544ac4 user: dkf | |
| 05:50 | • Add attachment result.diff to ticket [1041072fff] artifact: 9209c1b48e user: dkf | |
|
2004-10-05
| ||
| 22:50 | • New ticket [1041072fff] More efficient Tcl_AppendResult. artifact: c87a4169ff user: dkf | |
More efficient Tcl_AppendResult
Closed / Accepted1041072fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-10-05 22:50:27
This makes Tcl_AppendResultVA (and hence Tcl_AppendResult) more suitable for the Tcl_Obj world :^) Does not touch the rest of the file.
dkfplain2004-10-06 05:50:28
File Added - 103960: result.diff
dkf Closed ticket [1041072fff].
[History diff]2004-10-06 06:22:39
dkfplain2004-10-06 06:22:40
Logged In: YES user_id=79902 Accepted with minor modifications (thanks jenglish and dgp!)
dgpplain2004-10-27 01:16:31
Logged In: YES user_id=80530 backport?
dgp Open ticket [1041072fff].
[History diff]2004-11-18 05:33:13
dgpplain2004-11-18 05:33:14
Logged In: YES user_id=80530 This patch killled the performance of Tk test canvPs-3.1. See Tk Bug 1041475.
dgpplain2004-11-18 06:07:58
Logged In: YES user_id=80530 The [$canvas postscript] command creates the postscript description of the $canvas contents directly in the interp result with calls to Tcl_AppendResult(). The canvPs-3.1 test makes tens of thousands of T_AR calls. WIthout this patch, those tens of thousands of calls happen in the blink of an eye. With this patch, they take > 30 seconds. Since the intent of this patch was to make things more efficient, I think it's not working and should be reverted. Attached is an "undo" patch that will do that.
dgpplain2004-11-18 06:08:01
File Added - 109141: undo.patch
dgpplain2004-11-18 23:00:20
Logged In: YES user_id=80530 As an alternative to an undo, simply removing the final Tcl_GetStringResult() call from Tcl_AppendResultVA also restores the lost performance. That is, that monumental runtime price is paid solely to maintain interp->result.
dkfplain2004-11-23 07:21:07
Logged In: YES user_id=79902 Since that only adversely affects ancient apps that insist on fiddling with interp->result directly (Expect is such an app still AIUI), I've just removed the call to Tcl_GetStringResult(). Anyone who really wants it in (and who has read this thread carefully so they understand the consequences) can define the preprocessor symbol USE_DIRECT_INTERP_RESULT_ACCESS when building tclResult.c...
Log in (anonymous is fine) to add a comment.
Attachments:
- undo.patch [download] added by dgp on 2004-11-18 06:08:00. [details]
- result.diff [download] added by dkf on 2004-10-06 05:50:28. [details]