How to decrease CPU usage?
<p>I made a Swift app which runs very well on iPhone 6 and 6 plus, but when i test it on an iPhone 5 and below, there are some lags.</p>

<p>After analyzing, I saw a high CPU/memory consumption.</p>

<p>I want to know if there are some tips or best practices to reduce this usage?</p>

<p>I know it is very important to use different threads and return to idle when they are not used anymore, but I already do this.</p>

<p>The code which consumes the most resources creates a container (like the notification center) with some buttons on it and applies a blur effect below them.</p>