<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1046149" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1046149</link>
    <description></description>
    <language>en</language>
          <item>
    <title>PHP&#039;s json conversions have</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/performance-issues-using-json-encode-and-simplexml#comment-1247802</link>
    <description> &lt;p&gt;PHP&#039;s json conversions have benchmarked&#039; out to be faster than serialize/unserialize - which all the cool kids are using these days...  Premature optimization - finding the resource pinch before it exists - is quite difficult.  Do the best you can to build that application - optimisation is far easier when you have the complete picture to look at.  &lt;/p&gt;
&lt;p&gt;That thing you figure may be the resource hog at the start often turns out to be 5% of your execution time while that innocuous process waaayy back there in your code - you know, that simple one - silently eats 40%.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;
Shaggy.&lt;/p&gt;
 </description>
     <pubDate>Mon, 15 Mar 2010 13:40:16 +0000</pubDate>
 <dc:creator>Shaggy</dc:creator>
 <guid isPermaLink="false">comment 1247802 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>It much depends on how</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/performance-issues-using-json-encode-and-simplexml#comment-1247774</link>
    <description> &lt;p&gt;It much depends on how efficient the algorith doing the conversion is. If you&#039;re looking to get really technical, use &lt;a href=&quot;http://en.wikipedia.org/wiki/Big_O_notation&quot;&gt;Big O&lt;/a&gt; notation to work it out.&lt;/p&gt;
&lt;p&gt;Personally, I would leave your script how it is, as long as it isn&#039;t causing any performance problems.&lt;/p&gt;
&lt;p&gt;I would test it though, by feeding the PHP script lots of large XML responses (just create a PHP script that pretends to be like the Web service your script is requesting data from). Use the &lt;a href=&quot;http://ca2.php.net/manual/en/function.time.php&quot;&gt;time()&lt;/a&gt; function to see how long it takes to process large amounts of data and whether the server becomes too overloaded.&lt;/p&gt;
&lt;p&gt;Frankly, I doubt you&#039;ll have any problems. I would also imagine that using JSON would be marginally faster since it &lt;em&gt;is&lt;/em&gt; Javascript.&lt;/p&gt;
 </description>
     <pubDate>Sat, 13 Mar 2010 00:53:00 +0000</pubDate>
 <dc:creator>jeevesbond</dc:creator>
 <guid isPermaLink="false">comment 1247774 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I realise that JavaScript can</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/performance-issues-using-json-encode-and-simplexml#comment-1247772</link>
    <description> &lt;p&gt;I realise that JavaScript can handle XML but as I see things, it appears to be more efficient with JSON than XML?&lt;/p&gt;
&lt;p&gt;Do you think it would actually be more efficient just handling the XML directly than trying to convert to JSON?&lt;/p&gt;
 </description>
     <pubDate>Fri, 12 Mar 2010 17:32:58 +0000</pubDate>
 <dc:creator>benf</dc:creator>
 <guid isPermaLink="false">comment 1247772 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>When you&#039;re making an extra</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/performance-issues-using-json-encode-and-simplexml#comment-1247715</link>
    <description> &lt;p&gt;When you&#039;re making an extra step there are always performance issues. &lt;/p&gt;
&lt;p&gt;I don&#039;t really see why you want to encode the xml to json since javascript also can handle xml&lt;/p&gt;
 </description>
     <pubDate>Wed, 10 Mar 2010 14:45:25 +0000</pubDate>
 <dc:creator>avido</dc:creator>
 <guid isPermaLink="false">comment 1247715 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
