<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/2.0" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: XML HTTP Performance and Caching</title>
	<link>http://me.eae.net/archive/2005/04/02/xml-http-performance-and-caching/</link>
	<description>The journal of Emil A Eklund</description>
	<pubDate>Fri, 08 Aug 2008 00:48:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0</generator>

	<item>
		<title>by: Garrett Smith</title>
		<link>http://me.eae.net/archive/2005/04/02/xml-http-performance-and-caching/#comment-106497</link>
		<pubDate>Mon, 27 Aug 2007 00:44:04 +0000</pubDate>
		<guid>http://me.eae.net/archive/2005/04/02/xml-http-performance-and-caching/#comment-106497</guid>
					<description>Emil,

The results are very pretty, however, it would be useful to have a running test case. Some benefits are:

1) would provide backup proof to the claim that XHR is faster.
2) would allow Mozilla engineers ability to investigate.
3) relevant for developers who want to make decisions.

Can you please post up the test itself?

Thank you,

Garrett</description>
		<content:encoded><![CDATA[<p>Emil,</p>
<p>The results are very pretty, however, it would be useful to have a running test case. Some benefits are:</p>
<p>1) would provide backup proof to the claim that XHR is faster.<br />
2) would allow Mozilla engineers ability to investigate.<br />
3) relevant for developers who want to make decisions.</p>
<p>Can you please post up the test itself?</p>
<p>Thank you,</p>
<p>Garrett
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Garrett Smith</title>
		<link>http://me.eae.net/archive/2005/04/02/xml-http-performance-and-caching/#comment-106052</link>
		<pubDate>Fri, 24 Aug 2007 20:38:15 +0000</pubDate>
		<guid>http://me.eae.net/archive/2005/04/02/xml-http-performance-and-caching/#comment-106052</guid>
					<description>Emil,

Can you provide a testcase that the rest of us can see and run? 

It would be useful to actually have a running test in the browser, for proof.

Thank you,

Garrett</description>
		<content:encoded><![CDATA[<p>Emil,</p>
<p>Can you provide a testcase that the rest of us can see and run? </p>
<p>It would be useful to actually have a running test in the browser, for proof.</p>
<p>Thank you,</p>
<p>Garrett
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Júlio Greff &#187; Arquivo &#187; Ajax vs. Moda vs. Performance</title>
		<link>http://me.eae.net/archive/2005/04/02/xml-http-performance-and-caching/#comment-73966</link>
		<pubDate>Mon, 14 May 2007 16:18:17 +0000</pubDate>
		<guid>http://me.eae.net/archive/2005/04/02/xml-http-performance-and-caching/#comment-73966</guid>
					<description>[...] E não é só isso. Há muita coisa que poderia ser evitada. Carregar páginas quase inteiras, pequenos textos estáticos (babem&amp;#8230;), outras coisinhas irritantes que pulam na tela&amp;#8230; Quer que eu prove que não melhora a performance?  XML HTTP Performance and Caching. Creio que posso te convencer. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] E não é só isso. Há muita coisa que poderia ser evitada. Carregar páginas quase inteiras, pequenos textos estáticos (babem&#8230;), outras coisinhas irritantes que pulam na tela&#8230; Quer que eu prove que não melhora a performance?  XML HTTP Performance and Caching. Creio que posso te convencer. [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Fernando</title>
		<link>http://me.eae.net/archive/2005/04/02/xml-http-performance-and-caching/#comment-4488</link>
		<pubDate>Thu, 17 Aug 2006 19:59:19 +0000</pubDate>
		<guid>http://me.eae.net/archive/2005/04/02/xml-http-performance-and-caching/#comment-4488</guid>
					<description>Hi there,

Great article have you wrotten Emil. But by now, i do have a question about your testing case, specially at Firefox browser: I have trying to make a synchronous post request to server side - using XMLHTTPRequest object -, but at this browser, it is bugy, as a have looking at the web and found some information on Bugzilla site [bug id 313646]. So, how do you passthru this issue?

Best regards,

Fernando</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>Great article have you wrotten Emil. But by now, i do have a question about your testing case, specially at Firefox browser: I have trying to make a synchronous post request to server side - using XMLHTTPRequest object -, but at this browser, it is bugy, as a have looking at the web and found some information on Bugzilla site [bug id 313646]. So, how do you passthru this issue?</p>
<p>Best regards,</p>
<p>Fernando
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: web</title>
		<link>http://me.eae.net/archive/2005/04/02/xml-http-performance-and-caching/#comment-3113</link>
		<pubDate>Sat, 15 Jul 2006 06:49:28 +0000</pubDate>
		<guid>http://me.eae.net/archive/2005/04/02/xml-http-performance-and-caching/#comment-3113</guid>
					<description>The reason that synchronous use of XMLHTTP successfully checks the cache may be due to event bubbling within the IE engine. On a synchronous call IE is free to take it's time for request 1 before going on to request 2. At the beginning of request 2, request 1 has fully completed, and request 2 processing takes this into account.</description>
		<content:encoded><![CDATA[<p>The reason that synchronous use of XMLHTTP successfully checks the cache may be due to event bubbling within the IE engine. On a synchronous call IE is free to take it&#8217;s time for request 1 before going on to request 2. At the beginning of request 2, request 1 has fully completed, and request 2 processing takes this into account.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Anonymous</title>
		<link>http://me.eae.net/archive/2005/04/02/xml-http-performance-and-caching/#comment-2297</link>
		<pubDate>Thu, 22 Jun 2006 12:34:23 +0000</pubDate>
		<guid>http://me.eae.net/archive/2005/04/02/xml-http-performance-and-caching/#comment-2297</guid>
					<description>Listing A—read2array method of BigFileReader.java

/**

   *  Reads a file storing intermediate data into an array.

   *  @param file the file to be read

   *  @return a file data

   */

   public byte[] read2array(String file) throws Exception {

      InputStream in = null;

      byte[] out             = new byte[0];

      try{

         in = new BufferedInputStream(new FileInputStream(file));

         // the length of a buffer can vary

         int bufLen = 20000*1024;

         byte[] buf = new byte[bufLen];

         byte[] tmp = null;

         int len    = 0;

         while((len = in.read(buf,0,bufLen)) != -1){

            // extend array

            tmp = new byte[out.length + len];

            // copy data

            System.arraycopy(out,0,tmp,0,out.length);

            System.arraycopy(buf,0,tmp,out.length,len);

            out = tmp;

            tmp = null;          

         }

      }finally{

         // always close the stream

         if (in != null) try{ in.close();}catch (Exception e){}

      }

      return out;

   }</description>
		<content:encoded><![CDATA[<p>Listing A—read2array method of BigFileReader.java</p>
<p>/**</p>
<p>   *  Reads a file storing intermediate data into an array.</p>
<p>   *  @param file the file to be read</p>
<p>   *  @return a file data</p>
<p>   */</p>
<p>   public byte[] read2array(String file) throws Exception {</p>
<p>      InputStream in = null;</p>
<p>      byte[] out             = new byte[0];</p>
<p>      try{</p>
<p>         in = new BufferedInputStream(new FileInputStream(file));</p>
<p>         // the length of a buffer can vary</p>
<p>         int bufLen = 20000*1024;</p>
<p>         byte[] buf = new byte[bufLen];</p>
<p>         byte[] tmp = null;</p>
<p>         int len    = 0;</p>
<p>         while((len = in.read(buf,0,bufLen)) != -1){</p>
<p>            // extend array</p>
<p>            tmp = new byte[out.length + len];</p>
<p>            // copy data</p>
<p>            System.arraycopy(out,0,tmp,0,out.length);</p>
<p>            System.arraycopy(buf,0,tmp,out.length,len);</p>
<p>            out = tmp;</p>
<p>            tmp = null;          </p>
<p>         }</p>
<p>      }finally{</p>
<p>         // always close the stream</p>
<p>         if (in != null) try{ in.close();}catch (Exception e){}</p>
<p>      }</p>
<p>      return out;</p>
<p>   }
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Emil</title>
		<link>http://me.eae.net/archive/2005/04/02/xml-http-performance-and-caching/#comment-1920</link>
		<pubDate>Mon, 12 Jun 2006 21:38:10 +0000</pubDate>
		<guid>http://me.eae.net/archive/2005/04/02/xml-http-performance-and-caching/#comment-1920</guid>
					<description>Jamie Lokier &gt; It did, there was a 10 ms delay between the requests.</description>
		<content:encoded><![CDATA[<p>Jamie Lokier > It did, there was a 10 ms delay between the requests.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Jamie Lokier</title>
		<link>http://me.eae.net/archive/2005/04/02/xml-http-performance-and-caching/#comment-1919</link>
		<pubDate>Mon, 12 Jun 2006 21:21:55 +0000</pubDate>
		<guid>http://me.eae.net/archive/2005/04/02/xml-http-performance-and-caching/#comment-1919</guid>
					<description>Does your test script do the asynchronous XMLHttpRequests in sequence, each one waiting for the previous one to complete (readyState == 4) before starting the next?

I ask because if there is overlap, that would defeat caching and that would explain IE appearing to cache only synchronous requests.

Even if you wait for readyState == 4, maybe IE takes a short time to commit the received file to cache.  Adding a fixed time delay after readyState == 4 would check for that.</description>
		<content:encoded><![CDATA[<p>Does your test script do the asynchronous XMLHttpRequests in sequence, each one waiting for the previous one to complete (readyState == 4) before starting the next?</p>
<p>I ask because if there is overlap, that would defeat caching and that would explain IE appearing to cache only synchronous requests.</p>
<p>Even if you wait for readyState == 4, maybe IE takes a short time to commit the received file to cache.  Adding a fixed time delay after readyState == 4 would check for that.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Shaurabh Bharti</title>
		<link>http://me.eae.net/archive/2005/04/02/xml-http-performance-and-caching/#comment-1468</link>
		<pubDate>Thu, 25 May 2006 09:19:34 +0000</pubDate>
		<guid>http://me.eae.net/archive/2005/04/02/xml-http-performance-and-caching/#comment-1468</guid>
					<description>Nice Post!

never tested with such scripts, but surely would be interseted in having them and runnning on my programs.

Thanks in advance.

~Shaurabh Bharti</description>
		<content:encoded><![CDATA[<p>Nice Post!</p>
<p>never tested with such scripts, but surely would be interseted in having them and runnning on my programs.</p>
<p>Thanks in advance.</p>
<p>~Shaurabh Bharti
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Kosta</title>
		<link>http://me.eae.net/archive/2005/04/02/xml-http-performance-and-caching/#comment-697</link>
		<pubDate>Wed, 12 Apr 2006 23:38:13 +0000</pubDate>
		<guid>http://me.eae.net/archive/2005/04/02/xml-http-performance-and-caching/#comment-697</guid>
					<description>Hi. I have one problem with xml &amp;#38; flash. I use xml to display only text in flash file. But when i put this files on my ftp server and second time when i make some changes on that text in xml, my browsvers: IE, Mozila and Opera read my old xml file from cache. No from ftp server. Please for help.</description>
		<content:encoded><![CDATA[<p>Hi. I have one problem with xml &amp; flash. I use xml to display only text in flash file. But when i put this files on my ftp server and second time when i make some changes on that text in xml, my browsvers: IE, Mozila and Opera read my old xml file from cache. No from ftp server. Please for help.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
