Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 211641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:06:49+00:00 2026-05-11T18:06:49+00:00

Here is a very and straight forward question: How long will it take to

  • 0

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?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T18:06:49+00:00Added an answer on May 11, 2026 at 6:06 pm

    Search? In what sense?

    If you are simply running:

    [myStringArray containsObject:searchString];
    

    then 200-300 strings can be searched in a few microseconds.

    If you are searching:

    BOOL found = NO
    for (NSString *string in myStringArray)
    {
        if ([string rangeOfString:searchString].location != NSNotFound)
        {
            found = YES;
             break;
        }
    }
    

    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).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I will try to make this as straight forward as possible. This question does
I've been doing research on compilers. The lexer seems to be very straight forward:
I think this may sound very straight forward, but still something is not working
I'm new to scheme and I'm trying to do a small very straight forward
the error sounds very straight forward but am unable to fix it. I tried
Having trouble with something is very straight forward. I'm making a simple game (using
I have a very straight forward select query such as this: SELECT * FROM
Here is my situation: re.sub(r'([^\\])', r'\1[\W\1]*', string) It is straight forward that I want
I made a research and all posts here are very blury regarding this issue.
Here is a very simple program: a = [[]]*3 print str(a) a[0].append(1) a[1].append(2) a[2].append(3)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.