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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:50:54+00:00 2026-06-06T14:50:54+00:00

I use a config object to store configuration information. So something like this example:

  • 0

I use a config object to store configuration information. So something like this example:

var value = myObject.Get('name');

The actual config is stored in an array – ie config['name'] = value

There are a lot of calls to the Get() function – over 25,000. How significant would the difference be if that array was accessed directly instead of via he Get() call?

Also – in an animation that 25,000 could be done 60 times per second (!)

  • 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-06T14:50:56+00:00Added an answer on June 6, 2026 at 2:50 pm

    The direct access should be faster, but you should do some tests, because the code performance is often influenced by the js engine.

    For example, it’s about 50% faster to access an object’s key through the dot synthax (obj.key) than the asociative array like one (obj["key"]) in chrome, while in firefox it’s the other way around.
    I recommend you don’t do micro-optimisations before you end your project and only after you do some testing/research.

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

Sidebar

Related Questions

We use this Log4J config to display JTA info: <category name=org.springframework.transaction> <priority value=DEBUG/> </category>
Is it possible to use the .NET configuration objects to get at .config files
Currently, we use a giant configuration object that is serialized to/from XML. This has
I am using a java properties file to store some config information, on Object
I would like to store the source for html select boxes in a configuration
I use My.Settings object in VB.NET, which automatically gets application setting from AppName.exe.config file.
I am running the Java Pet Store example and this is the top part
I have one main class main, which I use to store the configuration and
I use config.ContentsCss to load the live site's styles into the editor: config.contentsCss =
I want to use Web.Debug.config and Web.Release.config each. But it does not work in

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.