halfmexican / mingle

A simple GTK4-Libadwaita app to play with Google's Emoji Kitchen.
GNU General Public License v3.0
41 stars 4 forks source link

Aggressive memory usage spike #23

Open raluvy95 opened 5 months ago

raluvy95 commented 5 months ago

While clicking on dice button to randomize the emojis, my memory consumption spikes from 47% to 83% and returns back to normal after finished processing.

By the way, I have 16 GB of memory. This app consumes over 5 GB of memory for every process in just 2 seconds. It shouldn't consume that much of memory considering that the only purpose for this app is to show combo emoji.

halfmexican commented 5 months ago

We have like a 50mb json file which contains all the supported emojis and combinations. This Json.Array is massive. I think you might've found a memory leak or something. I haven't seen memory usage above 700mb. I would love to have more space efficient solution.