Faster String Operations

   

Practical Programming in Tcl & Tk, Third Edition
By Brent B. Welch

Table of Contents
Chapter 53.  Tcl/Tk 8.2


The UTF-8 encoding has the drawback that characters are not all the same size: they are either one, two, or three bytes in length. This makes operations like string length, string index, and string range quite slow in comparison to a system that uses fixed-sized characters. A new Unicode string type, which uses 16-bit characters, was added to support faster string operations. This does not cause any changes that are visible to Tcl scripts, except for improved performance in comparison to Tcl 8.1.


       
    Top
     



    Practical Programming in Tcl and Tk
    Practical Programming in Tcl and Tk (4th Edition)
    ISBN: 0130385603
    EAN: 2147483647
    Year: 1999
    Pages: 478

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net