Variable Optimization by the Flash Compiler 2004-03-01 - By Jayson K Hanes
Back 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)
|
|