Overview
| Artifact ID: | 6d5cd7febec2252905a0d0218b5aee9d3aeeebf0 |
|---|---|
| Ticket: | 1692378fffffffffffffffffffffffffffffffff
TIP 280: performance impact |
| User & Date: | andreas_kupries on 2007-04-03 04:00:58 |
Changes
- icomment:
Logged In: YES user_id=75003 Originator: NO > Can you comment on what compelling feature TIP 280 provides that causes > it to be included in the ActiveTcl fork of Tcl 8.4.* ? A customer (Cisco) needing this feature, basing their libraries, etc. on 8.4, and unable to wait for 8.5. > Regarding solutions, my preference, is still to build on things in the > dgp-refactor-branch, and store line, file, etc. data in a Tcl_Obj for > a string parsed into Tcl_Tokens. This would be an example of > option (2), IIUC. Interesting. I am aware of your dgp-refactor-branch, but do not truly know what has been going on in there. As such I was not aware that we could have based #280 on work done in that branch. Yes, from the quick description this seems to be a (2). I.e. my understanding is that the modified eval parses a string into an extended token rep and executes the tokens. This token-rep is kept around for the next eval, allowing us to skip the expensive parsing, and with respect to #280 it definitely seems to be a natural location where to cache the line, etc. information. I speculate that the token rep could also be used as the input for modified byte code compiler functions. Full speedup where we parse & byte compile & cache byte codes, partial speed up were we parse and cache tokens, no speedup where we have to reparse every time. I will try to find time to look into this branch. How much has it diverged from head by now ? I seem to remember that I haven't seen a merge from head to this branch in a long time now, several months I think. Also, are these changes for which we need a TIP ? And even if we do not need it, should we have a TIP, to document all the changes (new structures I guess, functions, etc.) ? >I've never made time to pursue that, and quite rightly an implementation >of TIP 280 got done without waiting around for my lack of progress. Rightly maybe, but still/also a pity. >I've got much less to offer regarding ways >to tweak the existing TIP 280 implementation >to address this issue, since my thought >patterns tend to fall back into my own >solutions, and since I've never made time >to fully digest the workings of the existing >implementation. Very understandable. I wonder how difficult a merge has become by now, given that both #280 and refactor both touch the eval implementation, and maybe also the compile functions.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"