Google Developers2.4 млн
Опубликовано 23 июня 2015, 16:52
One of the common problems with memory issues in an Android Application has to do with Memory Churn; that is, allocating a bunch of objects, in a short period of time. This issue can kick off a load of Garbage Collection events, which eats into your potential framerate.
In this video, Ian Ni-Lewis takes a deep loop at one of the most common causes of memory-churn : Doing allocations inside of an onDraw() function. But the main question is, why would an allocation in onDraw() be worse than an allocation anywhere else?
Watch more Android Performance Patterns here: goo.gl/4ZJkY1
Join the G+ Community here : goo.gl/g7mxmI
100 Days of Google Dev / 100 developer videos over 100 days / #GoogleDev100
Subscribe to the Google Developers channel here: goo.gl/mQyv5L
In this video, Ian Ni-Lewis takes a deep loop at one of the most common causes of memory-churn : Doing allocations inside of an onDraw() function. But the main question is, why would an allocation in onDraw() be worse than an allocation anywhere else?
Watch more Android Performance Patterns here: goo.gl/4ZJkY1
Join the G+ Community here : goo.gl/g7mxmI
100 Days of Google Dev / 100 developer videos over 100 days / #GoogleDev100
Subscribe to the Google Developers channel here: goo.gl/mQyv5L
Случайные видео
Google Meet can help you quickly connect and present to your team. But maybe check your tabs first 👀