How is dart VM's production mode faster when ignoring static types? Doesn't it need to do type inference at runtime? -


was watching introductory video - http://www.dartlang.org/dart-tips/dart-tips-ep-2.html , presenter memtioned:

production mode gets speed boost ignoring static types, because can avoid many type checks.

when static types introduced in actionscript 3.0, static types encouraged means increase execution speed. apparently dynamic types caused vm infer types during execution slow down, , static types, vm cruise through without additional work. why opposite in dart vm?

thanks!

i'm not sure actionscript i'm guessing in dart, types helpful tool programmers better understand program when shared other programmers (and dart editor provides lots of informative feedback using them). in checked mode (dart's other runtime) compiler slower because going check static types. then, when want use production runtime, skip step hiccup involving types should have been handled (by programmer) in checked mode.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -