Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: da47e8ed742083c3e7f734402e3af1fdcf02afa8
Ticket: 1465666fffffffffffffffffffffffffffffffff
8.5 lists sometimes uses more memory for 8.4..
User & Date: kennykb on 2007-01-03 22:49:39
Changes

  1. closedate changed to: "2007-01-03T15:49:39"
  2. closer changed to: "kennykb"
  3. icomment:
    Logged In: YES 
    user_id=99768
    Originator: NO
    
    It is indeed true that Tcl_GetDoubleFromObj is slower on Windows in 8.5 than it was in 8.4 - but should be slower only when it actually has to shimmer a string.
    
    It is also true that the old Tcl_GetDoubleFromObj fails dozens, if not hundreds, of the roundoff tests in expr-28.*.  To some extent, we appear to be facing a choice between "fast" and "correct."
    
    Since the memory management appears to be exonerated, and since the performance change appears to be something that we've accepted for the moment, I'm closing out this issue.
    
    A note to the original submitter.  Rather that using "$i." to convert an integer to floating point, it's both faster and safer to use [expr {double($i)}] -- and note the curly braces.  That won't trouble to generate a string representation of the 'double' until it's needed, and will do the integer-to-double conversion without going through an intermediate string representation.  In most of your examples, it will save both space and time.
    
    
  4. login: "kennykb"
  5. mimetype: "text/plain"
  6. resolution changed to: "None"
  7. status changed to: "Closed"
  8. username: "kennykb"