Automatic serialization of while loops

Private: Q&ACategory: QuestionsAutomatic serialization of while loops
Martin Dimitrievski asked 8 years ago

Currently the automatic serialization does not recognise the opportunity to speed up a while loop.
Is there any reason for this behavior?
As a workaround, I replaced the “while” with a “for” with the respective boundaries and got ~350x speedup over the interpreted version.
Thanks

1 Answers
bgoossen Staff answered 8 years ago

Starting with the next version, while loops will be serialized and native code will be generated. Because this feature is new, it is necessary for the moment to specify {!serial for} in front of the while loop.