Decrement versus Increment in Loop 2

Adobe’s “Optimizing Performance for the Flash Platform” recommends that “Use reverse order for while loops” in its “Miscellaneous optimizations” section. And in my last post, decrement was not explicitly faster than increment with the following code to compare them: while (–i > -1) while (++i < MAX_NUMBER) // MAX_NUMBER is a constant Difference was very little [...]

You Might Also Like...

  • Decrement versus Increment in Loop

    287 readersAdobe’s “Optimizing Performance for the Flash Platform” recommends that “Use reverse order for while loops” in its “Miscellaneous optimizations” section. while (--i > -1) But according to my test significant difference could not be found between decrement and increment. In other language they said that decrement and increment are identical. The pre-increment/decrement is a little

  • Optimize Flex SWF

    848 readersAs an Adobe Flex developer you should pay great attention to performance. Sati at AskMeFlash wrote nice post about optimizing Flex SWF to reduce its size and improve loading performance. In the post, Sati summarized in the following areas: Implement RLS in your project. Create SWC file of your common code Module  Loading external content

  • The Results are in… ColdFusion 9 is wicked fast

    285 readersWe released a performance brief on ColdFusion 9. Flash Remoting is now 8 times faster Object Instantiation is 7 times faster IIS connectivity is faster Implicit Getters and Setters are 7 times faster than explicit There's a lot to love here, check it out: http://www.adobe.com/products/coldfusion/pdfs/cf9_performancebrief_ue.pdf

  • Recharge with milk and Robotlegs

    320 readersI just wanted to show you what came out of my work with Robotlegs. Recharge with Milk is a hybrid site Html/Flash. We did the flash part because for the home section it would be faster to take care of the page resizing and to add some animations in the compare tool. Only the home

  • Flash performances on mobile

    354 readersLook at my benchmark of Flash Player 10.1 and HTML animations on mobile devices.

  • Recursion vs. Iteration: Elegance or Speed?

    1221 readersRepeated operations are handled either by recursion or loops (iteration). One of the fundamental structures of programming is loops, and we programmers tend to think, If I need to repeat an operation, I use a loop. Loops are built-in structures of most languages, and ActionScript 3.0 has multiple options when it comes to loops. ActionScript

  • Where are the Config Constants?

    Quick Tip: Compile a Debug Version of Your Flash Project

    1360 readersIn this Quick Tip I’ll show you how to use Config Constants to compile different debug and release versions of your code, so you can easily switch between them. Step 1: Config Constants Settings A lot of people don’t know about Flash’s Config Constants because they’re new to CS4 and because they’re buried deep within two sets

  • OnDemand: Going Multiscreen with the Flash Platform

    196 readersLast we I participated in the eSeminar series “Going Multiscreen with the Flash Platform”and some of the presentations have been recorded and assets uploaded.  All are worth watching, (especially Thibault’s on optimizing web content). Best Practices in Optimizing Web Content Thibault Imbert: @thibault_imbert, http://www.bytearray.org Slides Recording: Coming soon The Quickest Way to Build Cross-Platform Apps

  • Optimizing Mobile Content for the Adobe Flash Platform

    275 readersAdobe made available a draft version of  "Optimizing Mobile Content for the Adobe Flash Platform." Adobe worked with Adobe ActionScript expert Thibault Imbert to provide tips and tricks for improving the performance of ActionScript applications running on mobile devices. Through code examples and use cases, this document outlines best practices for developers deploying applications on

  • Recursion vs. Iteration: Elegance or Speed?

    444 readersRepeated operations are handled either by recursion or loops (iteration). One of the fundamental structures of programming is loops, and we programmers tend to think, If I need to repeat an operation, I use a loop. Loops are built-in structures of most languages, and ActionScript 3.0 has multiple options when it comes to loops. ActionScript

Subscribe to RSS headline updates from: GurusUnleashed
Powered by FeedBurner

  • Design & Career Resources

    Open design job and RFQ/RFP listings for Friday, 10 September Courtesy of Design Jobs Live!
    The latest resources and free stuff (like textures, fonts, Photoshop brushes, scripts, plug-ins, and much more!) from workflowFreelance.com. Read more!
    The latest headlines from workflowFreelance.com. Read more!
  • Popular Search Terms

    Curious what others are searching for? Below are the most popular search terms over the last 30 days.