Support Board
Date/Time: Sat, 11 Jan 2025 06:51:49 +0000
Subgraph memory question
View Count: 672
[2016-11-10 05:48:23] |
enemyspy - Posts: 306 |
Does the the sc.subgraph matrix take up the same amount of memory regardless of how many columns are referenced and unused? for instance if I were to reference all 60 columns but not populate them with result - leave them all empty. Would it be taking up the same amount of space as if they were left un-referenced? I am pretty sure If it is already there whether it is referenced does not impact memory use? EDIT: Therefore, Would it be wasteful to have a Subgraph that is 99% NULL values, or is every subgraph in sc.subgraph allocated based on the chart size ahead of time anyway? Date Time Of Last Edit: 2016-11-10 06:01:37
|
[2016-11-10 08:55:56] |
Sierra Chart Engineering - Posts: 104368 |
Whenever accessing an element of the Data array of the sc.Subgraph at index 1 or higher, then it is allocated. So this does increase memory use. So you should be careful with this.
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, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2016-11-11 00:08:07] |
enemyspy - Posts: 306 |
so In that case if a chart were doing a full recalculation but The elements of the the Data Array of the subgraph Are not accessed until sc.Index == sc.ArraySize-1 Then the memory would not get allocated until then is that correct?
|
[2016-11-11 00:58:29] |
Sierra Chart Engineering - Posts: 104368 |
Yes, but once it is allocated it remains allocated unless there is a full reload of the chart data like through Chart >> Reload and Recalculate.
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, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
To post a message in this thread, you need to log in with your Sierra Chart account: