Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7c8dcbb81b662fb12295590095ae940c93e6edd5551a5a3aaea2d1d709c6ca28
Ticket: 8994c972ad3df0aff53739fce486e39809a7b752
Performance regression in the expr in/ni operator in Tcl 9
User & Date: apnadkarni on 2026-03-11 14:02:52
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    Compare 8.6 
    
    ```
    % timerate -calibrate {}
    0.03480732249997189 µs/#-overhead 0.035377 µs/# 55176756 # 28266780 #/sec
    % set l [lrepeat 1000 x]; timerate {expr {"a" in $l}}
    6.619428 µs/# 150279 # 151070 #/sec 994.761 net-ms
    ```
    
    with 9.0
    
    ```
    % package req Tcl
    9.0.2
    % set l [lrepeat 1000 x]; timerate {expr {"a" in $l}}
    9.195111 µs/# 108328 # 108753 #/sec 996.088 net-ms
    ```
    
  5. foundin changed to: "9.0"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "apnadkarni"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to:
    Performance regression in the expr in/ni operator in Tcl 9
    
  16. type changed to: "Bug"