Repository navigation
Closed
Description
I've just downloaded FC1 (Linux version) and the first thing I've noticed is that there appears to have been a huge performance regression since R9 :(
Scripts which were taking only a few seconds to run with R9 I'm now having to kill after several minutes with FC1. The good news is that when they do manage to finish the output is correct.
It's difficult to find an example for you to run which doesn't involve the use of my own libraries but try the following which is a simulation of a children's game called 'Last letter-first letter'.
This involves heavy use of recursive search and is slow anyway - even with R9 - taking around 78 seconds to run on my ageing Core i7 machine. With FC1 I let it run for 28 minutes before killing it.
maxPathLength = 0
maxPathLengthCount = 0
maxPathExample = ""
names = [
"audino", "bagon", "baltoy", "banette", "bidoof",
"braviary", "bronzor", "carracosta", "charmeleon", "cresselia",
"croagunk", "darmanitan", "deino", "emboar", "emolga",
"exeggcute", "gabite", "girafarig", "gulpin", "haxorus",
"heatmor", "heatran", "ivysaur", "jellicent", "jumpluff",
"kangaskhan", "kricketune", "landorus", "ledyba", "loudred",
"lumineon", "lunatone", "machamp", "magnezone", "mamoswine",
"nosepass", "petilil", "pidgeotto", "pikachu", "pinsir",
"poliwrath", "poochyena", "porygon2", "porygonz", "registeel",
"relicanth", "remoraid", "rufflet", "sableye", "scolipede",
"scrafty", "seaking", "sealeo", "silcoon", "simisear",
"snivy", "snorlax", "spoink", "starly", "tirtouga",
"trapinch", "treecko", "tyrogue", "vigoroth", "vulpix",
"wailord", "wartortle", "whismur", "wingull", "yamask",
]
list.swap = function(i, j)
temp = self[i]
self[i] = self[j]
self[j] = temp
end function
search = function(part, offset)
if offset > maxPathLength then
globals.maxPathLength = offset
globals.maxPathLengthCount = 1
else if offset == maxPathLength then
globals.maxPathLengthCount += 1
globals.maxPathExample = ""
for i in range(0, offset - 1, 1)
if i % 5 == 0 then
globals.maxPathExample += char(10) + " " + part[i]
else
globals.maxPathExample += " " + part[i]
end if
end for
end if
lastChar = part[offset - 1][-1]
for i in range(offset, part.len - 1, 1)
if part[i][0] == lastChar then
names.swap(i, offset)
search(names, offset + 1)
names.swap(i, offset)
end if
end for
end function
for i in names.indexes
names.swap(i, 0)
search(names, 1)
names.swap(i, 0)
end for
print "Maximum path length : " + maxPathLength
print "Paths of that length : " + maxPathLengthCount
print "Example path of that length : " + maxPathExample
/* Output:
Maximum path length : 23
Paths of that length : 1248
Example path of that length :
machamp pinsir rufflet trapinch heatmor
remoraid darmanitan nosepass starly yamask
kricketune exeggcute emboar relicanth haxorus
simisear registeel landorus seaking girafarig
gabite emolga audino
*/Metadata
Metadata
Assignees
Labels
No labels
Activity
JoeStrout commentedon Sep 23, 2026
Yikes, thanks for the report! I will dig into it today.
Further fix related to issue #16.
Fix break failure causing every map store to effectively `yield()`,