Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6d2272c22ed24208395cd1aed589f974c1ac97d63ce0511217feff018d803357
Ticket: de243b694daaf06e6a0fbcbeb7279c326c25551c
Several trim mechanisms cause segfault / wrong check for NTS
User & Date: sebres on 2018-03-14 17:39:39
Changes

  1. closedate changed to: "2458192.2358765"
  2. closer changed to: "sebres"
  3. icomment:
    Thanks Don, good job.
    
    I've improved it a bit now (for 8.5 and 8.6).
    
    The single char "special fix" [96a6332cff] simply avoids double overhead in such simple cases 
    (where internal trim-left results in one char, which is already checked there):
    <code><pre>
      % timerate {string trimleft a " "}
      0.024563 µs/# 13629326 # 40711412 #/sec 334.779 nett-ms
      % timerate {string trim a " "}
    <b style="color:red;">- 0.038242 µs/# 11469338 # 26149583 #/sec 438.605 nett-ms</b>
    <b style="color:green;">+ 0.026118 µs/# 13351457 # 38287919 #/sec 348.712 nett-ms</b>
    </pre></code>
    
  4. login: "sebres"
  5. mimetype: "text/x-fossil-wiki"