Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Variable Optimization by the Flash Compiler

Variable Optimization by the Flash Compiler

2004-03-01       - By Jayson K Hanes

 Back
Reply:     1     2     3     4     5     6  

Good question.. "why", I don't know either.. but it is true that when an
fla is compiled to SWF the variable names are indeed left intact.. this
can be seen with any swf decompiler -- the variables are named exactly
as they were authored.

Thus, I too would agree, shorter variable names would be "better" -- but
I can't see how it would be "faster" -- I can see them taking up more
memory if longer -- but not really to the point of inhibiting
performance..

-Jayson

> -- --Original Message-- --
> From: Justin Palmer [mailto:justin@(protected)]
> Sent: Monday, March 01, 2004 5:04 PM
> To: flashnewbie@(protected)
> Subject: [Flashnewbie] Variable Optimization by the Flash Compiler
>
> Hi,
>
> I have heard many times to watch your variables lengths in your movies
> to help execute code faster and to make smaller movies.  Is this true?
> If so, why?
>
> I look at the Java Virtual Machine, and say why would it be so hard
for
> the flash compiler to do the same.  The JVM takes all of the variable
> names and reduces them to a minimal name for you.  This great so that
> Programmers can program with variable names that make sense for the
> situation with out worrying about what the compiler does with them and
> how it could effect your movie.  There in increasing maintainability
and
> readability for all programmers on any given project.  Any insight
would
> be great.
>
> Regards,
>
> Justin Palmer


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Supported by Fig Leaf Software
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Lower Prices for Certified Training! Check out new lower prices for
Certified Macromedia Training from Fig Leaf Software. Expand your
skill set with courses in ColdFusion, Flash, Rich Internet
Applications and .NET in the new year.  Fig Leaf Software provides
the highest caliber instruction at our training centers in Washington
D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at
your location.

Get the details at http://training.figleaf.com/
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected)
For additional commands, e-mail: flashnewbie-help@(protected)