-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
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
[Swift] Improves vectors performance & arrays within lib #8415
[Swift] Improves vectors performance & arrays within lib #8415
Conversation
Master:
Current:
|
de74d7a
to
35d4cab
Compare
Master:
Current:
|
f643dc7
to
c7d5edf
Compare
@hassila I upgraded the package for benchmarks however it seems that the benchmarks changes a lot for example:
1.27.2
1.12.0
|
Yes, the default output format changed to be scaled per inner loop iteration - those are denoted by |
Oh perfect! thanks for the clarification! |
That was done here: https://github.com/ordo-one/package-benchmark/releases/tag/1.14.0 If you want the old output for the benchmark as a whole, rather than scaled to per iteration, you can add |
…ts in swift Improves performance for all arrays and for loops Uses a tuple instead of allocating a struct each time we start iterating over fieldloc Updates benchmark library
c7d5edf
to
9809e0f
Compare
be9b7c2
to
8147231
Compare
4d2485d
to
b9c5669
Compare
The following PR improves the performance of usage of arrays, and for loops within the swift language. Instead of using the sugar syntax of a for loop in swift, example
we use stride to have a better control over the iteration and speed of the code: