4 ms·
What made Flash so fast ? was it direct unsafe access to the metal or was there some black magic in their code ?
by agumonkey 11y ago
What made Flash so fast ? was it direct unsafe access to the metal or was there some black magic in their code ?
- throwaway2048 11y agoactionscript (the flash programming language) is pretty much the same as javascript, the main reason why flash is often a lot faster than html+js things in a browser is it is not constrained to a slow, broken DOM for building uis.
- agumonkey 11y agoI know but I would be very surprised if the DOM model was <postedit>entirely</postedit> responsible for the performance hit.
- throwaway2048 11y agoit is by far the largest preformance drain in pretty much any dynamic website.
- agumonkey 11y agoSo retrofitting arbitrary layouts onto a ~text document specific one is that much an error. In hindsight I find it fantastic how web pages became the basis infrastructure of all this UX reinvention.
- samch 11y agoI think the answer is probably Tamarin[1] which started life as Flash's ActionScript engine and has since been donated to Mozilla. The Flash Player has also had direct GPU support for graphics and video for many years. [1] https://en.wikipedia.org/wiki/Tamarin_%28software%29 https://en.wikipedia.org/wiki/Tamarin_%28software%29
- spyder 11y agoOne notable difference is that ActionScript 3 is a strongly typed language, which can help with performance.
- tracker1 11y agoI don't know that it's particularly faster than what can/could be accomplished with svg + JavaScript ... I think most of the speed as a plugin vs native html/svg/js is that you don't have the whole DOM to deal with (including reflows, etc), and that their ActionScript is a much smaller subset of a language than JS in the browser, AS3 changed things a bit though. Today with canvas and an audio api that mostly works, you can get the same. What I really wish is that Adobe would create Flash-level tooling with outputs for HTML/canvas/js/web-audio and video.
- samch 11y agoThe tooling was amazing. I used to do a ton of Flash development back in the day, and the ability to seamlessly create the UI and backend code is still light years ahead of the cross-browser nightmare of creating HTML5 apps. I think Adobe has tried to achieve the same level of functionality with other tools over the years (Adobe Edge Suite), but it never really made it to the same level as web application development in Flash.
- radley 11y agoThey did - it was called Edge. The truth of the matter is HTML etc simply can't do what Flash does effortlessly, so it never got anywhere.