Thibault Imbert writes at ByteArray.org about Faster JPEG Encoding in Flash Player 10:
So what did I do ?
- I used bitwise operators as much as possible.
- I replaced all Arrays with Vectors.
- I used pre-incrementation rather than post-incrementation (thanks Joa for this one
).
- I casted to int all my Vector indices access.
- Other minor stuff you always do to optimize your code
![]()
The result: a 300% speedup. Not bad.