We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7178406 commit 3d40513Copy full SHA for 3d40513
benchmark/single-source/IndexPathTest.swift
@@ -63,18 +63,18 @@ func indexPath(_ size: Int,
63
// Subscript Mutations
64
65
@inline(__always)
66
-func subscriptMutation(n: Int,
67
- mutations: Int,
68
- mutate: (inout IndexPath, Int) -> ()) {
+func subscriptMutation(n: Int,
+ mutations: Int,
+ mutate: (inout IndexPath, Int) -> ()) {
69
for _ in 0..<n {
70
- var ip = indexPath(size)
+ var ip = indexPath(size)
71
+
72
+ for i in 0..<mutations {
73
+ mutate(&ip, i)
74
+ }
75
- for i in 0..<mutations {
- mutate(&ip, i)
- }
-
76
blackHole(ip)
77
78
}
79
80
@inline(never)
0 commit comments