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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:18:33+00:00 2026-05-30T22:18:33+00:00

I pasted the following code in google closure for reducing the size,selected the option

  • 0

I pasted the following code in google closure for reducing the size,selected the option ‘advanced’.

for(var i =0;i<7;++i)
{
   alert(6);
}

After compilation , i got

 for(var a=0;7>a;++a)alert(6);

So what is the advantage of changing variable name to ‘a’ and changing the condition to 7>a instead of a<7….Is there any performance improvement .If so why?

  • 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-30T22:18:34+00:00Added an answer on May 30, 2026 at 10:18 pm

    Advanced mode picks the shortest names possible. It starts with ‘a’. The reordering is done to maximize gzip compression. Neither are helpful for a snippet like yours but these with other transformations can make a large difference to a more significant code base. Generally the compiler transformation are aimed at code size not performance but to be at least performance neutral.

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

Sidebar

Related Questions

Did anybody ever installed wkhtmltopdf on Fedora 14? On http://code.google.com/p/wkhtmltopdf/wiki/compilation there is a step
I have the following code copy/pasted multiple times. The values that change are the
The MustangPeak Common Library (http://code.google.com/p/mustangpeakcommonlib/) contains the following code that converts a method to
The following code is used to execute doctests in a Google App Engine app.
I am following this tutorial step by step http://code.google.com/apis/maps/articles/phpsqlajax.html . Actually I copy pasted
I'm following the example here: http://code.google.com/p/modwsgi/wiki/IntegrationWithPylons however, it doesn't work - I get ImportError:
I'm working with the google safebrowsing api, and the following code: def getlist(self, type):
Make a new AS3 Document in Flash, paste in the following code and run
In the following code, I passed the 1.3f to printFloat, but it was the
I have the following code in a Runnable that gets passed to a thread

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.