Eliminate Loader: create audio stream icon instead of using Loader
As we all know, Loader
is an Item
, which will consume some memory.
But in daily usage only a few applications have audio streams, so it's
not very efficient to put a Loader in the task component. This uses
createComponent
and createObject
to reduce the memory consumption of
the task manager applet.
This saves about 2000kb memory when there are 10 tasks in the task manager and none of the tasks has audio stream.
Before | After |
---|---|
Edited by Fushan Wen