<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Question about Arrays in GDL? in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Question-about-Arrays-in-GDL/m-p/260234#M4665</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hi there,&lt;BR /&gt;&lt;BR /&gt;I would like to ask if there was a maximum size for arrays (either parameter or variable) for 1D and 2D arrays ?&lt;BR /&gt;&lt;BR /&gt;And if there was any, how big it can get? And what is the safe limit that I should not break for safe usage ?&lt;BR /&gt;&lt;BR /&gt;And if Array type (integer, real, string, etc) have an impact on its size ?&lt;BR /&gt;&lt;BR /&gt;Thank you in advance&lt;/DIV&gt;</description>
    <pubDate>Mon, 26 Sep 2022 20:49:10 GMT</pubDate>
    <dc:creator>Nader Belal</dc:creator>
    <dc:date>2022-09-26T20:49:10Z</dc:date>
    <item>
      <title>Question about Arrays in GDL?</title>
      <link>https://community.graphisoft.com/t5/GDL/Question-about-Arrays-in-GDL/m-p/260234#M4665</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi there,&lt;BR /&gt;&lt;BR /&gt;I would like to ask if there was a maximum size for arrays (either parameter or variable) for 1D and 2D arrays ?&lt;BR /&gt;&lt;BR /&gt;And if there was any, how big it can get? And what is the safe limit that I should not break for safe usage ?&lt;BR /&gt;&lt;BR /&gt;And if Array type (integer, real, string, etc) have an impact on its size ?&lt;BR /&gt;&lt;BR /&gt;Thank you in advance&lt;/DIV&gt;</description>
      <pubDate>Mon, 26 Sep 2022 20:49:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Question-about-Arrays-in-GDL/m-p/260234#M4665</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2022-09-26T20:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Arrays in GDL?</title>
      <link>https://community.graphisoft.com/t5/GDL/Question-about-Arrays-in-GDL/m-p/260235#M4666</link>
      <description>The upper limit for an array index is currently 2147483647.&lt;BR /&gt;
The size in memory depends on the data type, but with huge amount of data you will probably have speed issues sooner than being out of memory.&lt;BR /&gt;
A safe limit is hard to declare, it also depends on how complex the model generated from the data is.</description>
      <pubDate>Tue, 14 Jul 2020 10:44:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Question-about-Arrays-in-GDL/m-p/260235#M4666</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2020-07-14T10:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Arrays in GDL?</title>
      <link>https://community.graphisoft.com/t5/GDL/Question-about-Arrays-in-GDL/m-p/260236#M4667</link>
      <description>@Peter Baksa&lt;BR /&gt;
&lt;BR /&gt;
Thank you for your quick reply.&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;by Peter Baksa&lt;BR /&gt;
The upper limit for an array index is currently 2147483647.&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
Is the 2147483647 indices are for single column or total ?&lt;BR /&gt;
&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;by Peter Baksa&lt;BR /&gt;
The size in memory depends on the data type, but with huge amount of data you will probably have speed issues sooner than being out of memory.&lt;BR /&gt;
A safe limit is hard to declare, it also depends on how complex the model generated from the data is.&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
I was expecting something in that direction, and I know that it's difficult to give an accurate answer for such a complex question, I just need something as a point of reference.&lt;BR /&gt;
&lt;BR /&gt;
By the way, how much would impact each data type for arrays on its size in memory ?? In simple multipler number, also as a reference&lt;BR /&gt;
&lt;BR /&gt;
Thank you in advance</description>
      <pubDate>Tue, 14 Jul 2020 11:38:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Question-about-Arrays-in-GDL/m-p/260236#M4667</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2020-07-14T11:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Arrays in GDL?</title>
      <link>https://community.graphisoft.com/t5/GDL/Question-about-Arrays-in-GDL/m-p/260237#M4668</link>
      <description>2147483647 for a single column, but an array[2147483647][2147483647] will be surely out of memory.&lt;BR /&gt;
Consider all numeric types the same size, not much optimization can be done on GDL side.</description>
      <pubDate>Tue, 14 Jul 2020 16:59:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Question-about-Arrays-in-GDL/m-p/260237#M4668</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2020-07-14T16:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Arrays in GDL?</title>
      <link>https://community.graphisoft.com/t5/GDL/Question-about-Arrays-in-GDL/m-p/260238#M4669</link>
      <description>Thank you Peter&lt;BR /&gt;
&lt;BR /&gt;
Please check my calculations,&lt;BR /&gt;
&lt;BR /&gt;
So an array with 2,147,483,647 items, for numeric type supposing (integer or array) usually will occupy 4 bytes per item, which will make almost 8 GB ...&lt;BR /&gt;
&lt;BR /&gt;
 &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_eek.gif" style="display : inline;" /&gt; That is impressive ....&lt;BR /&gt;
&lt;BR /&gt;
And if it was string, i would say it would be variable per item with an average 64 byte per item (total speculation from my part)&lt;BR /&gt;
&lt;BR /&gt;
So if my numbers were true,&lt;BR /&gt;
The safe bet for a median spec. pc, (let say a Ryzen 1700 + 16GB Ram) with 1 instance of the special GSM file in an almost empty file, with no operation associated with it would be 214,750,000 items assuming they are numeric (total), outside of these specs, and light work in GDL would be 21,475,000 items.&lt;BR /&gt;
&lt;BR /&gt;
But if we have to consider all conditions, PC specs, project size, array type, and other criteria, the array size should not go beyond the 215,000 items.&lt;BR /&gt;
&lt;BR /&gt;
Am I correct !!??</description>
      <pubDate>Tue, 14 Jul 2020 23:03:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Question-about-Arrays-in-GDL/m-p/260238#M4669</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2020-07-14T23:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Arrays in GDL?</title>
      <link>https://community.graphisoft.com/t5/GDL/Question-about-Arrays-in-GDL/m-p/260239#M4670</link>
      <description>I am curios about that number as I am getting errors once the value of my 2D arrays goes beyond 32,627; not sure if that is the exact number as it was given to me 4 years ago when i hit the limit.&lt;BR /&gt;
&lt;BR /&gt;
I'm populating arrays with data from XML files to generate catalogues within an object. When the catalogues get larger and go over 32,627 resulting array cells, we get a "stack error" when importing it into the array.</description>
      <pubDate>Tue, 14 Jul 2020 23:41:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Question-about-Arrays-in-GDL/m-p/260239#M4670</guid>
      <dc:creator>Kristian Bursell</dc:creator>
      <dc:date>2020-07-14T23:41:13Z</dc:date>
    </item>
  </channel>
</rss>

