
Optimize with haXe
Get flash to fully experience Pearltrees
haXe introduction
haXe (pronounced as hex ) is an open source programming language While most other languages are bound to their own platform (Java to the JVM, C# to .Net, ActionScript to the Flash Player), haXe is a multiplatform language . It means that you can use haXe to target the following platforms :Why use haXe?
Extremely fast compiling The compiler is lightning fast. When compared to the Flash or Flex compilers, you will find a noticeable speed increase.See "Platform Specific Features/Flash" by Dec 8
Using flex with haXe
This new release includes some still experimental SWC output feature. SWC is the library format used by Flash. haXe only supports SWC for Flash9+. The idea is that a lot of people that write AS3 libraries would really love to use haXe because of the language and its performances, but can't because their users are using AS3. So far it was already possible to generate AS3 code from haXe code, but at this time you were losing all haXe compiler performances improvements.
Constant expression optimizer
haXe produces bytecode/opcodes which are optimized better than the adobe compilers / mxmlc. This provides a small but significant increases in speed which all mount up. See the links at the foot of the page for more information. I'm going to jump straight in to full on detail here! from the examples in question, here is snippet of code from the non-optimised version: Non-Optimized

