Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-2661

android : regression with responseXML from 1.2.0 to 1.5.1 - slow XML parsing

    Details

      Description

      {html}<div><p>an XML with 100 rows (on iphone xml parsing is very fast)</p>
      <p>on android & SDK1.2.0 only 1 second to enter the loop (and
      seeing the actInd.message = 'loading : 'x'/'+items.length<br>
      with SDK1.5.1 it can take up to 20 seconds.</p>
      <pre>
      <code class=
      "javascript">var actInd = Titanium.UI.createActivityIndicator({message:'Waiting...'});
      actInd.show();

      var xhr = Ti.Network.createHTTPClient();
      xhr.open("GET","distant_XML");
      xhr.onload = function()
      {
      try
      {
      var doc = this.responseXML.documentElement;
      var items = doc.getElementsByTagName("tag");
      var x = 0;
      for (var c=0;c<items.length;c++)
      { actInd.message = 'loading : '+x+'/'+items.length; }



      }
      catch(E){}
      };

      xhr.send();</code>
      </pre></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              dthorp Don Thorp
              Reporter:
              stephane Stephane
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-2322
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration