Activity Stream
48,167 MEMBERS
6768 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 4 of 4
  1.     
    #1
    Member
    Website's:
    maxneeds.info

    Default Javascript clean var and save memory?

    Hi guys.
    Sometimes i have really big vars that take a lot of memory.
    I am nulling them like this ?

    Code: 
    var myvar='some big stack';
    myvar=null;
    The thing is that i am not sure if that works.
    Some people say that myvar=false or myvar=undefined will do the trick.
    Any thoughts?

    Thanks
    Porsche_maniak Reviewed by Porsche_maniak on . Javascript clean var and save memory? Hi guys. Sometimes i have really big vars that take a lot of memory. I am nulling them like this ? var myvar='some big stack'; myvar=null; The thing is that i am not sure if that works. Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member

  4.     
    #3
    Respected Member
    Code: 
    delete variable_name;

  5.     
    #4
    Member
    Website's:
    maxneeds.info
    delete is possible only for global vars...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. CPM ads networks that is clean.
    By polse01 in forum Webmasters, Money Making
    Replies: 6
    Last Post: 6th Mar 2012, 12:43 AM
  2. how to clean dns cache
    By khan007 in forum Server Management
    Replies: 3
    Last Post: 29th Sep 2011, 05:59 PM
  3. Too clean
    By Kr?niiK in forum Graphics Area
    Replies: 5
    Last Post: 28th Feb 2011, 10:19 PM
  4. [VPS] need clean vps
    By kaminas in forum Archive
    Replies: 6
    Last Post: 2nd Feb 2011, 11:28 AM
  5. Clean Start Anyone ?
    By Dice in forum Community Cooperative
    Replies: 0
    Last Post: 16th Feb 2009, 11:46 PM

Tags for this Thread

BE SOCIAL