----------
Use FirstOfGroup loops with null boolexprs instead of GroupEnumUnitsInRange calls with boolexprs and ForGroup calls.
Meaning this:
Jass:
call GroupEnumUnitsInRange(bj_lastCreatedGroup, 0, 0, 500, Filter(function filter))
call ForGroup(bj_lastCreatedGroup, function actions)
Should be turned into this:
Jass:
call GroupEnumUnitsInRange(bj_lastCreatedGroup, 0, 0, 500, null)
loop
set tempUnit = FirstOfGroup(bj_lastCreatedGroup)
exitwhen tempUnit == null
call GroupRemoveUnit(bj_lastCreatedGroup, tempUnit)
if filter(tempUnit, ...) then
// actions here
endif
endloop
This is about 3x more efficient and it will cause noticeable differences in an actual map.
----------
A null boolexpr and a FirstOfGroup loop is the fastest for group actions? I'm use to doing all the actions in the boolexpr.
*is outdated vJasser*
Also, with the Zephyr contest, you should probably add that a WIP of a submission is required on to the first post.