04-03-2019 04:48
04-03-2019 04:48
Hi,
We have developed multiple virtual list type screens but we are getting a random error (Error: ERR_OUT_OF_MEMORY ) while switching between screen.
Each screen is updated with the latest data. All data is coming from the server.
There is any way to optimize virtual-tile-list?
04-03-2019 12:39
04-03-2019 12:39
I've found tile lists (including virtual) to be very memory-hungry, and had to abandon them in one of my products. This is especially true if you're populating tiles via getElementBy...(), which seems to grab a lot of memory and doesn't ever release it all.
There are some general suggestions about memory usage reduction here. A suggestion specific to a virtual tile list would be to ensure that your code is structured so that no references to tile-specific variables are retained when a tile goes out of scope (ie, off-screen). Global variables are especially to be avoided. This gives the garbage collection system the greatest chance of reclaiming unused memory for reallocation.