Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1d928ff272392fac2f5cd17697ce4932b484872d
Ticket: 322720f99dbe67f791e557876bd46e734544b988
Poor bytecode (optimizations?) for || and &&
User & Date: dgp on 2017-02-06 18:37:28
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
        proc isTest-1 {arg} {
          if {[string match "0" $arg] || [string match "1" $arg] || [string match "2" $arg] || [string match "3" $arg] || [string match "4" $arg]} {
            return 1
          }
          return 0
        }
    
        proc isTest-2 {arg} {
          if {[string match "0" $arg]} {
            return 1
          }
          if {[string match "1" $arg]} {
            return 1
          }
          if {[string match "2" $arg]} {
            return 1
          }
          if {[string match "3" $arg]} {
            return 1
          }
          if {[string match "4" $arg]} {
            return 1
          }
          return 0
        }
    
        set script(1) {if {[isTest-1 "10"] == "-"} {} else {}}
        puts "1: Result: [isTest-1 "10"] | Time: [time $script(1) 10000]"
        set script(2) {if {[isTest-2 "10"] == "-"} {} else {}}
        puts "2: Result: [isTest-2 "10"] | Time: [time $script(2) 10000]"
    
        puts [tcl::unsupported::disassemble proc isTest-1]
        puts [tcl::unsupported::disassemble proc isTest-2]
    
  5. foundin changed to: "8.6.6"
  6. is_private changed to: "0"
  7. login: "dgp"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "dgp"
  13. subsystem changed to: "47. Bytecode Compiler"
  14. title changed to: "Poor bytecode (optimizations?) for ||"
  15. type changed to: "Bug"