Large Array Iteration (200000) - any chance for optimization?

P

pr

Thomas said:
Or by using an XPath expression:

//*[@class="DeviceList" or contains(@class, "DeviceList ") or
contains(@class, " DeviceList")]

(Suggestions for optimization are welcome.)

In this case

.//select[contains(concat(" ", @class, " "), " DeviceList ")]

should be good enough, using document.body as the context node.
 
Y

Yanick

Hello!

My project has the following interface: (screenshot works the best)http://www.screencast.com/users/aschaible/folders/Jing/media/65d7db9d...

Device groups could have 1 device, or 100,000 devices.

I have an asynchronous action when you select a different device group
- it will go to the server, get the applicable devices - remove the
current devices from the list, then re-add all the devices it has
retrieved.

I don't know what library you are using, but look at the LiveGrid
example here : http://dowdybrown.com/dbprod/rico2/examples/php/ex2.php

This is not a native list control, and ajax calls would need to be re-
written, but the implementation should not be too difficult to write
for your need.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,145
Messages
2,570,825
Members
47,371
Latest member
Brkaa

Latest Threads

Top