Hello Marc and everyone,
I am using SPServices to gather data and draw graphs with an other plugin (flot).
Up until now, I was trying to optimise my code to have the page show faster, but after having done most of whwat I can, I tried to see what point takes the longer time (both with big lists and very little ones).
The problem I ran in is that even if WebServices are damn slow to answer due to the server, the SPServices also takes a good amount of time to compute between the time I call and the time I can act again.
As an example, I have a list with 140 items, so just a medium one for what I am doing.
The first request took 0.7 seconds to execute on a very little list (5 items).
The web services themselves took 109 ms (Web.asmx) and 316 ms (Lists.asmx).
So it is safe to assume that the rest is taken by SPServices, before the request and after.
The subsequent calls to little lists don't show such high differences (290ms vs 305ms etc).
Then comes the big list, and again, the difference is quite big: 188 ms for Lists.asmx and 584 ms SPService call.
I assume that all this lag is not due exclusively to SPServices (maybe timers and all the system behind ajax calls), but do I have to expect more than a second of diference for lists with 1000+ items?
As it is really a concern for big lists, I wanted to ask here first hand before going into optimisation of a code that's not mine and already pretty much optimised.
I hope someone can answer, and maybe give me a hint on how to use it more efficiently.
Thanks in advance.