-
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
base: master
Are you sure you want to change the base?
[Swift] Improves vectors performance & arrays within lib #8415
Conversation
Master:
Current:
|
de74d7a
to
35d4cab
Compare
Master:
Current:
|
35d4cab
to
f643dc7
Compare
…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
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 |
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: