String Building

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Anthony Jones

    #16
    Re: String Building


    "Justin Piper" <jpiper@bizco.c om> wrote in message
    news:op.s9ptroe dcs3d1w@luxembo urg.psg.bizcote ch.com...[color=blue]
    > On Wed, 17 May 2006 15:59:03 -0500, Anthony Jones <Ant@yadayadaya da.com>
    > wrote:
    >[color=green][color=darkred]
    > >> I am surprised by how poorly the Stream object fared.[/color]
    > >
    > > That'll be due to the encoding the stream object will be performing on
    > > the
    > > string. It doesn't just dump the unicode string given into the storage
    > > but
    > > encodes it to the currently selected codepage.[/color]
    >
    > Ah, that makes sense. In that case, I suspect it doesn't check whether the
    > text needs to be re-encoded before doing so, as explicitly setting the
    > locale to "en-us" and the Stream object's codepage to "windows-1252"
    > didn't have any effect on performance.
    >[/color]

    All strings in ASP are unicode. Setting the Stream object's encoding to
    "UTF-16" might make a difference since it shouldn't have to encode the
    string.


    [color=blue]
    > --
    > Justin Piper
    > Bizco Technologies
    > http://www.bizco.com/[/color]


    Comment

    • Justin Piper

      #17
      Re: String Building

      On Thu, 18 May 2006 09:59:06 -0500, Anthony Jones <Ant@yadayadaya da.com>
      wrote:[color=blue]
      > All strings in ASP are unicode. Setting the Stream object's encoding to
      > "UTF-16" might make a difference since it shouldn't have to encode the
      > string.[/color]

      No such luck. The docs say that "unicode" is the default value of
      ..Charset, and explicitly setting it to "utf-16" or "utf-8" unfortunately
      doesn't yield any performance gains.

      --
      Justin Piper
      Bizco Technologies
      We help businesses optimize efficiency with information technology, audio-visual, and mobility solutions through predictable pricing and dependable support.

      Comment

      Working...