Artifacts Associated With Ticket 2825543
Ticket change [ee622ec71c] (rid 104076) by sbabbaro on 2009-07-22 20:39:24:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OS Platform Linux (openSuSE 11.0 and Ubuntu 8.04.2) and Windows XP (ActiveState Release 8.5.6 and 8.5.7) Problem Behavior: expression execution time grows continuously Expected Behavior: expression execution time approximately constant In attached file, I leave to you the script that shows this behavior (almost certainly due to conversion between numbers): is this behavior 'to be considered right' ? If you need further information I am available.
- foundin initialized to: "obsolete: 8.5.7"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "sbabbaro"
- subsystem initialized to: "48. Number Handling"
- title initialized to: "Time loss in expr"
- type initialized to: "Bug"
Ticket change [710c8e1c07] (rid 100604) by sbabbaro on 2009-07-23 03:39:26:
- icomment:
File Added - 336155: test.tcl
- login: "sbabbaro"
- mimetype: "text/plain"
- username: "sbabbaro"
- icomment:
Add attachment "test.tcl" [384f99916e] (rid 112187) by sbabbaro on 2009-07-23 03:39:26.
Ticket change [3579223f0e] (rid 106937) by dgp on 2009-07-23 03:53:33:
- closedate changed to: "2009-07-22T20:53:33"
- closer changed to: "dgp"
- icomment:
allow_comments - 1 print the value of $t to see what is happening. Note that in Tcl 8.4 integer values had limited range and when that range was overflowed the values truncated to that range automatically. Scripts like yours depend on that truncation. In Tcl 8.5 integer range is unlimited. Without truncation,the integers grow bigger. It takes longer and longer to compute on bigger and bigger integers. The solution, as noted in the release notes of Tcl 8.5.0 as something to take care over when migrating from earlier Tcl releases, is to make your integer truncation needs explicit by putting the appropriate int(.) or wide(.) function calls in your expressions.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "dgp"