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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:33:18+00:00 2026-06-07T15:33:18+00:00

To start, this is not a question on regarding how to search or parse

  • 0

To start, this is not a question on regarding how to search or parse using UISearchBar in a UITableView.

I have already set up everything, the parsing, viewing, etc.

My question is, what is the right way to search?

My current flow is:

  • Parse the XML.
  • Add everything in an array.
  • Display the array in the table.
  • User input search.
  • Parse the XML again using the search input.
  • Add everything to the same array.
  • Display the array in the table

Is this fine? will this not be slow when it is on a real server? is it doing too much request?

OR this would be a better approach?

  • Parse the XML.
  • Add everything in an array.
  • Display the array in the table.
  • User input search.
  • Search the array.
  • Create a new array and add the searched items.
  • Display the new array.

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-07T15:33:20+00:00Added an answer on June 7, 2026 at 3:33 pm

    Technically both the approaches are fine. However, as far as the performance is concerned, it is usually advisable to avoid repeated calling of the web service. Unless the data of your web service is changing, it is preferred to save the data from the web service in some variable (array in your case) and then use this array to access the web service data again.

    Therefore, I would suggest that you should use the second approach. I will be computationally less expensive.

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

Sidebar

Related Questions

This question is related to Java Refuses To Start - Could Not Resrve Enough
I have a quick question regarding memory management that I am not quite sure
I think I have read every article and stack overflow question regarding this, but
I have a question regarding stepper motor control while using the Microchip TCP/IP stack.
First of all there is a partial question regarding this, but it is not
This is a duplicate of this question, but specpifically regarding mercurial. I have a
I have a question regarding using LightSpeed in a MVC3 Web application. I am
I ask this not to start anything negative. Rather, after looking at ASP.NET MVC
Let me start by saying im not 100% the way Im handling this is
I'm not sure exactly how to explain this, so I'll just start with an

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.