Support Board
Date/Time: Mon, 10 Nov 2025 11:57:31 +0000
Post From: Fast Persistent Variables
| [2025-10-24 18:43:54] |
| Sierra_Chart Engineering - Posts: 21358 |
|
The map is used because the integers can be any value. If you use a value of 1000000, it would make a vector, 1 million elements and using a huge amount of memory. The memory allocation could also likely fail. No, it will be the opposite: I guess if we have 1000s of persistent variables for a study the map search will be faster, than the vector search.
We do not understand this: 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. Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2025-10-24 18:44:28
|
