Login Page - Create Account

Support Board


Date/Time: Mon, 10 Nov 2025 11:49:13 +0000



Post From: Fast Persistent Variables

[2025-10-22 15:57:41]
skalaydzhiyski - Posts: 91
Alright, this makes perfect sense, but what I don't get is why do we have a map as implementation for persistent variables in the first place when the indices (the keys of the map) are always integers ? I guess if we have 1000s of persistent variables for a study the map search will be faster, than the vector search.

But I guess it's always better to have std::vector<int>* as persistent pointer rather than std::vector<persistent ints> if you wanted a large number of variables.

Anyway just thinking out loud, thanks for the quick response!

All the best,
Date Time Of Last Edit: 2025-10-22 16:01:53