Vitor Pamplona on Nostr: The app can use more, up to 1GB of RAM, but Androd will push it back down to the ...
The app can use more, up to 1GB of RAM, but Androd will push it back down to the 512MB range agressively. Each jitter is the OS literally pausing the app to run Garbage collection. Since Garbage doesn't find much to clean, it stays close to the limit and the OS calls it again.
What we have to do is to redesign Video cache and Event cache to load only parts of objects and be more aggressive on keeping only the things the user is seeing.
Published at
2024-04-17 21:43:27Event JSON
{
"id": "1df0126410f710d87aefdab0a65b802b7fc8ab6dc9916f3b6512c1349a2793bd",
"pubkey": "460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c",
"created_at": 1713383007,
"kind": 1,
"tags": [
[
"e",
"aadd54823bf7dc24055df6f83d75f166476187ffc446441d0115831ffebd3fe2",
"",
"root"
],
[
"e",
"9c294191aca5b284f28236becc7f4ba5de1562418b4a2304efd2d097b5515329"
],
[
"e",
"d435f3e9305a28d7fe5fc2edb84783f1a5dd1aefff18e5fe411753033b2268c1",
"",
"reply"
],
[
"p",
"3f770d65d3a764a9c5cb503ae123e62ec7598ad035d836e2a810f3877a745b24"
],
[
"p",
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c"
],
[
"p",
"a80fc4a78634ee26aabcac951b4cfd7b56ae18babd33c5afdcf6bed6dc80ebd1"
]
],
"content": "The app can use more, up to 1GB of RAM, but Androd will push it back down to the 512MB range agressively. Each jitter is the OS literally pausing the app to run Garbage collection. Since Garbage doesn't find much to clean, it stays close to the limit and the OS calls it again. \n\nWhat we have to do is to redesign Video cache and Event cache to load only parts of objects and be more aggressive on keeping only the things the user is seeing. \n\n",
"sig": "5de67da77ed3415c87ef99972c7f6c6855585c2fe9556832976cd550d85a87327ad5e91ca3a72f2f6eb9a1ce40ed42201ef86c684dd77f0405190c0116199d3e"
}