Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d9df53f650fa4e8642c0e5bd5f4e445180ef3070
Ticket: 218427ffffffffffffffffffffffffffffffffff
[clock scan] parser could use hash table lookups
User & Date: nobody on 2000-10-26 00:57:28
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 5950 RFE
    Version: 8.4a1
    SubmitDate: '2000-06-26'
    LastModified: '2000-08-14'
    Severity: LOW
    Status: Closed
    Submitter: ericm
    ChangedBy: ericm
    OS: All
    FixedDate: '2000-10-25'
    ClosedDate: '2000-08-14'
    
    
    Presently, [clock scan] uses a series of arrays to lookup words like "Tuesday" or "GMT".  This can be very slow; in fact, you can stack the deck, so to speak, against the scanner by choosing words that are at the end of the last table to be examined.  We can probably speed it up by using hash table lookups instead.  Of course, that requires a one-time "populate the hash table" call, but we can defer that to the first call to [clock scan], at least.  In any case, it's worth investigating, I think.  [clock scan] is a fairly pokey command.
    
    - eric
    
    
    
    After some experimentation, it seems that this modification has little or no impact on the speed of [clock scan].  In any case, [clock scan] is not typically a critical path command, so it's probably not worth spending a lot of time on it at this point.  Something else that might be worth trying is to use a string trie, but that's really something better left for a class project.  Surely it would be interesting to try, but maybe not worth the effort in the end.
    
    - eric
    
    -- 08/14/2000 ericm
    
    
    
  4. foundin changed to: "obsolete: 8.4a1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "48. Number Handling"
  10. title changed to: "[clock scan] parser could use hash table lookups"
  11. type changed to: "Bug"