Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 11607f56dbfc546a46d48a37b94f98e3315383d4018cfce9b03339122006f912
Ticket: 62dafd9c53882dc27f4bbd68ad5b2160f06129ff
Namespace import can cause quadratic big-O and affects all siblings of same original command
User & Date: sebres on 2025-03-27 14:18:52
Changes

  1. icomment:
    Here how it looks without the impact of importRefPtr list (I already rewrote that in my fork, with replacing importRefPtr by "default" ref-counting of cmdPtr through the import):
    <code><pre>
      === 100 ===
      7.640000 µs/# 100 # 130890 #/sec 0.764 net-ms
      0.490000 µs/# 100 # 2040816 #/sec 0.049 net-ms
      === 1000 ===
      7.243000 µs/# 1000 # 138064 #/sec 7.243 net-ms
      0.496000 µs/# 1000 # 2016129 #/sec 0.496 net-ms
      === 10000 ===
      7.788300 µs/# 10000 # 128397 #/sec 77.883 net-ms
      0.592700 µs/# 10000 # 1687194 #/sec 5.927 net-ms
      === 100000 ===
      7.683910 µs/# 100000 # 130142 #/sec 768.391 net-ms
      0.621080 µs/# 100000 # 1610098 #/sec 62.108 net-ms
    </pre></code>
    The issue is now - how to backport that all and resolve 1000 conflicts.
    
  2. login: "sebres"
  3. mimetype: "text/x-fossil-wiki"