I
I
INTERNALINTERFERENCE2021-12-22 20:55:29
C++ / C#
INTERNALINTERFERENCE, 2021-12-22 20:55:29

How to reduce the size of the space occupied by an array?

There is a ViewModelCollection, into which the logs arrive, and then displayed in the view.
All logs are needed, nothing can be deleted while the application is running. But there was a problem - after 20 minutes, there were already about a hundred thousand logs and RAM -700mb.
Whether it is possible to "compress" all this business somehow?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-12-22
@INTERNALINTERFERENCE

Whether it is possible to "compress" all this business somehow?

Throw off the logs first to disk, and then read and display in pieces.
In memory, keep only some adequate piece in order to have time to load the next pack while the user is scrolling.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question