Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3791

Array() function using Pairs causes slow Aggressive Compile

$
0
0

Thanks to @Kem_Tekinay for reporting this initially.

See https://tracker.xojo.com/xojoinc/xojo/-/issues/77604

I managed to figure out the problem.

Using a large Array() of Pairs() will trigger the issue.

For example, this code:

var stations() as Pair = Array ( _
  "Abha" : 18.0,_
  "Abidjan" : 26.0,_
  [ ... 400 more lines  ... ]
  "Zanzibar City" : 26.0,_
  "Zürich" : 9.3 _
)

Will add 30+ minutes to an Aggressive compile.

Workaround: simply store the data as an array of strings, then convert each item into a pair.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 3791

Trending Articles