Here is a very and straight forward question:
How long will it take to search an array of 200-300 strings locally? What about remotely?
Here is a very and straight forward question: How long will it take to
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Search? In what sense?
If you are simply running:
then 200-300 strings can be searched in a few microseconds.
If you are searching:
Then it is almost entirely dependent on the length of each string but for strings less than a few dozen chars it is about the same as the previous search speed.
Remote searching is completely different — but is a colossal waste of time for an operation like this. It is entirely based on network latency. Figuring on an average 250ms ping, an average time for a remote operation is about half a second or more just because it takes that long to generate the network packets, send over the net, wait for the remote server to receive, wait for the remote server to process, wait for the response and parse the response.
If this question was a round-about way of asking: should I just fetch all 30 strings and search locally — then: yes, search locally. Generally: local searching is faster until the time taken to download all the results becomes a burden (over 3G, I normally consider 50kB about the maximum for fast transparent downloads).