rsouissi
Hi all,
I have a performance related question:
Is it faster to subscriber to items in different tables then in the same table ?
Basically, does onItemUpdate() get invoked serially for each update on a table or does it get invoked concurrently ?
Regards
Mone
Hi,
There is almost no difference.
The web client packs a burst of requests from the API in a single request to the Server.
In Javascript there is no concurrency at all, each thread is executed completely before pass the control to another thread.
Feel free to organize your tables as it is more suitable for your application.
rsouissi
Actually I am wondering, when onItemUpdate() gets invoked and it happens to be a little bit slow (for instance to view full market, refreshing a large table and its DHTML is costly), does it slows down the refresh rate of other smaller tables in the same page or not ? Because if there is no concurrency, then onItemUpdate() for table2 must wait for onItemUpdate() on table1 to finish, right ?
Regards,
A
Mone
Yes you are right, the onItemUpdate() for table2 must wait for onItemUpdate() on table1 to finish, btw note that the DOM updates should be processed in an asynchronous way by the browser engine (ie "DOM change" calls are non-blocking calls).
In any case note that if the CPU is full (100%) this will slow down everything.