Art,android new Memory garbage collection mechanism
The benefits of art: Faster code loading----fewer compile times
Android's lag is due to the memory garbage collection mechanism, do not need human management, before the memory garbage collection mechanism Google test every 54ms to drop 3 frames more
Drop-Frame User experience the screen is stuck.
Stutter: All threads stop performing work
Previous recycling mechanism: when traversing, see where memory can be released to stutter once, mark the time to stutter
ART: No need to traverse, less lag time when marking
Art's implementation: Compile all the code, support precompilation, and plainly do a lot of work to reduce the lag before the lag.
The disadvantages of art: 1. The code takes up a lot, but it's not a problem compared to the memory of our phone now.
2. The software first runs at a slower pace, but Google's data shows no difference from the previous, but efforts to improve
News column ~art makes Android smoother