Login Page - Create Account

Support Board


Date/Time: Fri, 25 Sep 2020 04:48:00 +0000



Post From: Notice: Study Exceptions in New Versions and Code Efficiency

[2020-05-10 22:39:35]
Sierra Chart Engineering - Posts: 89886 | Ending Date: 2021-04-05
We had a question by email as to why the existing ACSIL persistent functions were not optimized and these new ones were created. And whether these new ones should always be used now.

Yes use these fast functions from now on in most cases. The other functions are still useful for pointers and strings and when accessing persistent variables across charts and studies. And when you need to use a key value that does not fit within the index range of 0 to 10000.

The older ACSIL persistent functions cannot be optimized because they support a random key value which can be in the range from zero to UINT_MAX.

Whereas the fast ones specifically are using an index which needs to start at 0 and go up. Although perfectly fine to start at 1 and fine to skip indexes but you should not. The old ones use a STL map, the new ones use a STL vector.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
Date Time Of Last Edit: 2020-05-10 22:41:42