Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8d5c8039471b94e144cc34ff7009b87d9ecc80bd
Ticket: 1767293fffffffffffffffffffffffffffffffff
Bad performance using ** operator with integer operands
User & Date: dgp on 2007-08-06 22:19:04
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    Originator: NO
    
    
    When at least one of the arguments is double,
    the operation turns into a pow() call at the
    C level, so it's comparable performance to
    [expr {pow(...)}] minus Tcl function call overhead.
    
    When both are integer, the current implementation
    is an iterative one.  It's worth looking for improvements,
    but only to the extent that the current performance
    isn't "fast enough".  Patches welcome; otherwise I'll
    get to this when I get to it.
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. priority changed to: "3 Low"
  5. username: "dgp"