We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There are a few places where the following syntax is used in the system:
(0..n).forEach { // Do something }
According to this article, forEach is 300% slower than a for-loop and should be avoided.
forEach
for
A grep on the source code identified the following occurrences:
src//main/kotlin/lgp/core/evolution/operators/SelectionOperator.kt: (0..tournamentSize - 2).forEach { _ -> src/main/kotlin/lgp/core/evolution/model/Models.kt: (0 until this.environment.configuration.generations).forEach { gen -> src/main/kotlin/lgp/core/evolution/model/Models.kt: (0 until this.environment.configuration.generations).forEach { gen -> src/main/kotlin/lgp/core/evolution/model/Models.kt: (0 until numGenerations).forEach { _ -> src/main/kotlin/lgp/core/evolution/model/Models.kt: (0 until this@IslandMigration.options.migrationSize).forEach { _ -> src/main/kotlin/lgp/core/program/registers/RegisterSet.kt: (0 until this.totalRegisters).forEach { r ->
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There are a few places where the following syntax is used in the system:
According to this article,
forEach
is 300% slower than afor
-loop and should be avoided.A grep on the source code identified the following occurrences:
The text was updated successfully, but these errors were encountered: