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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:21:55+00:00 2026-06-07T07:21:55+00:00

I’m rewriting a JavaScript library that I wrote some time ago. Its purpose is

  • 0

I’m rewriting a JavaScript library that I wrote some time ago.
Its purpose is to display an array of objects as a table, that can be sorted, filtered and edited without server communication.

The current solution “pollutes” the objects with additional attributes, that are needed to steer the display.
The original object may look like this

{"name":"...","lastname":"...","age":27}

And then it has additional attributes like this

{"name":"...","lastname":"...","age":27,"TTMDecode":true,"TTMChildren":[]}

An alternative Solution may be to only wrap the original object and then work with these wrappers.

{"decode":true,"children":[],"data":{"name":"...","lastname":"...","age":27}}

I’m not sure which solution is preferable.
With the second solution it’s easier to return the original object to the server, in the case it was changed, but it doubles the amount of objects for the JavaScript engine.

The solution is able to work with over 20.000 objects and it’s fast in current browsers.
But will 40.000 Objects be a problem?

I hope I explained my worries good enough.

Regards

  • 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-07T07:21:56+00:00Added an answer on June 7, 2026 at 7:21 am

    First, about your architecture problem: why not make a parent object with the two properties display and data ? You should not limit your architecture because of performance worries, if it has effect, you will notice it when measuring the performance.

    var obj = {
        display: {
          // display data
        },
        data: {
          // personal data
        }
    );
    

    Which implicitly answers the question about the object count, this normally does not matter (if the objects themselves are not huge, it won’t affect your performance)

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I am reading a book about Javascript and jQuery and using one of the

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.