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

  • Home
  • SEARCH
  • 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 7616085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:48:16+00:00 2026-05-31T02:48:16+00:00

for the moment I have a dictionary with the keys names and the values

  • 0

for the moment I have a dictionary with the keys names and the values id that belong to those names. When I want to search the id belonging to a particular name, I have to walk over the whole structure, so this method has a bad performance.

I was wondering if a json-structure would provide a more performant solution? So my question is: is the retrieving of the value of an attribute in json quick? I am talking about at least 250 different attributes in a single json.
If not, what would be the best way to solve this performance-issue?

  • 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-05-31T02:48:17+00:00Added an answer on May 31, 2026 at 2:48 am

    250 different elements is very unlikely to cause performance issues. Don’t worry about it. If you really care, you can put the contents of your structure into a hash table, which will give you really fast look up performance. I would recommend that you don’t worry about this unless you can prove (with a profiler) that this look up is a performance problem.

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

Sidebar

Related Questions

At the moment I have a combobox that is populated from the name fields
I have a dictionary of type Dictionary<int, double> and want to eliminate values equal
At the moment I have a DocumentViewer in a WPF window that displays an
I'm trying to locate all the keys in one Dictionary that are not in
I have a sqlite db that at the moment has few tables where the
I have a class with a static method that returns a Dictionary. The signature
At the moment I have a very strange issue regarding locking a dictionary. I
I have a script that parses IIS logs and at the moment it fetches
basically I have an NSDictionary with keys and values. The keys are all numbers,
So at the moment I have a multidimensional array string[,] items = new string[100,

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.