Presentation by Roman Mazur, senior Android Developer at Stanfy at Android Developer Days in Ankara, June 2013. This presentation dedicated to techniques of optimization of big arrays processing using Android NDK and RenderScript.
5. Implementation
● Think about avoiding GC
● Think more about avoiding GC
● Think a lot about avoiding GC
● Utilize RenderScript
6. RenderScript
● Can be used not only for images processing
● Our implementation switches from pure Java
to RenderScript when possible
● Reuse Allocations
7. And it worked fast enough! On tablets...
http://hdwpapers.com/ship_silversea_shadow_wallpaper-wallpapers.html
8. But then we ran it on budget phones...
http://www.theatlantic.com/infocus/2012/01/the-wreck-of-the-costa-concordia/100224/
28. Tests
● Robolectric based tests for major part of
audio engine components
● Android instrumentation tests for
RenderScript and native implementations.