Overview
| Artifact ID: | 49a3ef06b8f5b1c406b90aadc7ef816997863f97 |
|---|---|
| Ticket: | 1517602fffffffffffffffffffffffffffffffff
long expressions and Tcl_Tokens |
| User & Date: | dgp on 2006-09-01 10:20:02 |
Changes
- icomment:
Logged In: YES user_id=80530 This is much less important than I believed when I posted it. I was misinterpreting the timing results of time {testexprparser [string repeat +1 $N] -1} which was getting really badly bogged down for not-too-outrageously-big values of $N, like 10000. Turns out that [testexprparser] produces a list as its output the string rep of which has length O(N^2), so I was measuring the test harness and not the thing I wanted to test. Happy ending is that testing with time {expr [string repeat +1 $N]} confirms that the revised parser truly is O(N). Hooray. The memory bloat of Tcl_Tokens issue is real, but only appears to matter for getting-pretty-outrageously-huge values of $N. - login: "dgp"
- mimetype: "text/plain"
- priority changed to: "2"
- username: "dgp"