<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>92677</bug_id>
          
          <creation_ts>2012-07-30 14:15:42 -0700</creation_ts>
          <short_desc>[meta] ascii string marking</short_desc>
          <delta_ts>2017-07-18 08:29:56 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>92982</dependson>
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Dan Carney">dcarney</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jochen</cc>
    
    <cc>msaboff</cc>
    
    <cc>peter</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>682373</commentid>
    <comment_count>0</comment_count>
    <who name="Dan Carney">dcarney</who>
    <bug_when>2012-07-30 14:15:42 -0700</bug_when>
    <thetext>This metabug is to track work for implementing detection and marking of ascii strings during latin1 string creation.  Please add specific implementation bugs that block this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>685464</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2012-08-02 09:09:26 -0700</bug_when>
    <thetext>What problem is this work meant to fix?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>685552</commentid>
    <comment_count>2</comment_count>
    <who name="">jochen</who>
    <bug_when>2012-08-02 10:34:45 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; What problem is this work meant to fix?

I&apos;m summary (there was a mail to webkit-dev with a longer version):

V8 has several optimizations for ASCII strings, i.e. you can export ascii to utf8 by memcpy (but not latin1), regexp matching is faster, toUpper(ascii) maps to ascii (but toUpper(latin1) does not map to latin1).

Detecting whether a string is ascii at creation time comes at no additional costs compared to detection latin1 which we already do. If we track ascii-ness of strings, we can use those optimizations.

JSC could benefit from this information as well.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>