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 8714871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:42:28+00:00 2026-06-13T05:42:28+00:00

Before I actually test it out, I want to know this. I have a

  • 0

Before I actually test it out, I want to know this.

I have a plist with 210 dictionaries, and in my code I initialize an NSArray through the contents of that plist.

Out of all these dictionaries, I need to enumerate through them and check for something:

for (NSDictionary *dict in largePlistArray) {

if ([[dict objectForKey: @"country"] isEqualToString: @"Cambodia"]) {

 NSLog (@"Random example!");

   }

 }

Let us say the dictionary with ‘Cambodia’ is the last in the whole array, how long will it take to enumerate through an full 200+ object array of dictionaries?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 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-06-13T05:42:30+00:00Added an answer on June 13, 2026 at 5:42 am

    The best way to tell is to try it out. However, 200 does not strike me as a particularly large or even as a marginally large number. Consider this: 1GHz CPU runs a billion elementary operations per second. Even if each lookup takes 100 elementary operations (in reality, it takes much fewer than that) a search of 200 items should complete in very short time, on the order of milliseconds.

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

Sidebar

Related Questions

before I start I want to point out that I tagged this question as
I have this code that is testing Calendar.getInstance().getTimeInMillis() vs System.currentTimeMilli() : long before =
I need to test if a user can write to a folder before actually
I want to preprocess files before gcc actually does its own preprocessing and parsing.
I have a terribly uncomplicated test program that prints out the following numbers. i.e.
I have a test db on godaddy, I have had a similar issue before
I want to test some code that relies on a network transmission. The code
I have a fairly complex system that I want to test using python. My
I'm trying to show a UIAlertView before actually deleting a cell from a UITableView
My problem actually is that I was using the response body before the callback

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.