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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:16:43+00:00 2026-06-06T05:16:43+00:00

Here is the code which test in IE8: var stack = []; function test()

  • 0

Here is the code which test in IE8:

var stack = [];
function test() {
    var i = 0;
    while(i++ < 100000) {
        stack[i] = {a: "some string"};
        delete stack[i];
    };
}
test();

This script only uses a little memory in IE. Windows task manager shows 29704K, But the next:

var stack = [];
function test() {
    var i = 0;
    while(i++ < 100000) {
        stack[i] = {a: "some string"};
    };
    i = 0;
    while(i++ < 100000) {
        delete stack[i];
    }
}
test();

It uses 54860K memory. I wander why or how to release the memory other way.

Appreciated for your help.

  • 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-06T05:16:45+00:00Added an answer on June 6, 2026 at 5:16 am

    If you are just looking at the total browser memory use at the system level, then you may be looking at the maximum browser memory usage, not how much memory is actually in use. Just because you free something up in the browser does not mean that the browser returns that memory to the OS. That memory may be available for future reuse in the browser, but not returned yet to the OS.

    Your second example will have a higher peak memory use than the first example because you fully populate the array before you then remove elements. Thus, it would not be surprising if it shows a greater memory use at the system level because of the higher peak usage. That doesn’t mean that the higher amount of memory is still in use, just that the browser had to request more memory from the system in order to deal with the higher peak usage and the browser did not necessarily return the now unused memory back to the OS. That memory will be in the browser’s pool of free memory that can be used for future memory requests so it’s not a memory leak.

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

Sidebar

Related Questions

I have some code here which works perfectly in firefox but not in chrome
I have this piece of Open MP code here which performs an integeration of
I am trying to understand this inline assembly code which comes from _hypercall0 here
I have this code here, which is intended to allow any type of arguments:
I've updated my code here. I've put the range inside the unavailableDays function which
I have the following (here simplified) code which I want to test with FakeItEasy
I have the following code which works: $(document).ready(function() { var xhr = false; func_two();
I am new at Python. Here is my code which scans number of test
I have this code which calculates the sum of "letter numbers" in a string,
So, here is some basic code which illustrates my question: #include <functional> int func(int

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.