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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:21:00+00:00 2026-05-19T03:21:00+00:00

Looking into javascript types I’m trying to find out what the maximum storage size

  • 0

Looking into javascript types I’m trying to find out what the maximum storage size for some data types are. For instance, I set up a quick recursive algo to increase var size till the browser crashes, which ends up being somewhere close to 128mb (or maybe it’s 256) for strings on my existing version of chrome.

I’ve been doing it the painful way because I couldn’t find any specs on this, but constant browser crashes make this a painful trial (try catch seems useless for some reason with this particular issue).

I’m looking for information about maximum storage size for the other types also (array, object, functions, strings, numbers, bools…)

EMCA-262 section 8.4 is vague on this

The length of a String is the number of elements (i.e., 16-bit values) within it. The empty String has length zero and therefore contains no elements.

…so perhaps this is something that needs to be identified as implemented in browsers?

ECMA does however tell us about numbers, for example,

The Number type has exactly 18437736874454810627 (that is, 2^64−2^53+3) values, representing the double-precision 64-bit format IEEE 754 values as specified in the IEEE Standard for Binary Floating-Point Arithmetic, except that the 9007199254740990 (that is, 2^53−2) distinct “Not-a-Number” values of the IEEE Standard are represented in ECMAScript as a single special NaN value.

But then I don’t see anything about objects.

What can I expect for use in browsers? Is there any code-base out there that helps manage very large objects and strings?

How much memory can I allocate in a single script?

  • 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-19T03:21:01+00:00Added an answer on May 19, 2026 at 3:21 am

    As you already stated, the specification does not state any size limits / requirements for types besides Number.

    So this is definitally left to the implementation.

    For example, Chrome’s limit on strings seems to be hard coded at around 512mb (and less on 32bit).

    This puts a limit on the maximally
    possible allocation request in 32-bit versions of 2^27-1. The maximal flat string
    length is ~2^28 (512MB space), and the maximal string length is 2^29-1, so neither of
    these limits catch the problem (we would throw an Out-Of-Memory exception instead if
    they did).

    See: http://code.google.com/p/v8/issues/detail?id=362#c9

    As far as the other browsers go, this would need some research e.g. looking into Firefox’s code. But I doubt we can do the same for IE / Opera.

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

Sidebar

Related Questions

I'm looking for a way (in JavaScript) to collect a set of objects into
I'm looking into a mechanism for serialize data to be passed over a socket
I am looking into QUnit for JavaScript unit testing. I am in a strange
Couldn't find this anywhere, maybe I'm looking for the wrong verbs. I'm trying to
I have stumbled into several methods of looping in JavaScript, what I like the
I'm looking into using Visual Studio 2008's built in unit test projects instead of
I have been looking into IKVMing Apache's FOP project to use with our .NET
I've recently been looking into targeting the .NET Client Profile for a WPF application
I'm looking into writing a audio syntesizer in Java, and was wondering if anybody
I'm looking into sending regular automated text-messages to a list of subscribed users. Having

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.