A quick question here: is it faster to load a large XML file (just one item per row), about 50,000 items, and parse it client side using JavaScript (I’m trying to find the rows that correspond to a certain date range), or is it faster to have PHP do the pre-parsing and send it to the client as it’s needed? The thing is the PHP request would be about once every second, which seems a bit overboard – I’m trying to load points on a map, I expect each date range to have about 2000 points.
Thanks!
If you are bringing 1,000’s of results back to the client every second you are going to have performance issues… That said if you are sending lots of data via AJAX I would recommend using JSON instead as there is much less overhead/content to send across the wire.
You also mentioned filtering on the server… Definitely filter out anything you don’t need to send… Until you need to send it.