Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 70157a2a0cbcf5d2c437d817bc7ee895f39b9cdb
Ticket: 1530262fffffffffffffffffffffffffffffffff
Minor optimisation to BinaryProc
User & Date: afredd on 2006-07-28 09:54:33
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    Replacing the for loop in BinaryProc (which is used
    to copy characters from one buffer to another) with
    a memcpy provides a minor speed up.
    
    Justication:
    BinaryProc is often used on channelBuffer's
    ie. srcLen is often 4096, and memcpy is much quicker
    than a for loop in such cases (i measure it at
    about 10x).
    
    It seems like a memcpy() is faster that a for loop
    whenever more than ~16 characters are copied, which
    is probably the most common case in calls to
    BinaryProc.
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "afredd"
  10. subsystem changed to: "None"
  11. title changed to: "Minor optimisation to BinaryProc"
  12. type changed to: "Patch"