Skip to content

Commit 1e8cff1

Browse files
committed
Minor code update
1 parent f2f7284 commit 1e8cff1

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

ChatLayout/Classes/Core/CollectionViewChatLayout.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,9 @@ public final class CollectionViewChatLayout: UICollectionViewLayout {
360360
// Items
361361
var items: ContiguousArray<ItemModel> = section.items
362362
items.withUnsafeMutableBufferPointer { directlyMutableItems in
363-
DispatchQueue.concurrentPerform(iterations: directlyMutableItems.count, execute: { rowIndex in
363+
DispatchQueue.concurrentPerform(iterations: directlyMutableItems.count) { rowIndex in
364364
directlyMutableItems[rowIndex].resetSize()
365-
})
365+
}
366366
}
367367
section.set(items: items)
368368

Example/ChatLayout.xcodeproj/xcshareddata/xcbaselines/607FACE41AFB9204008FA782.xcbaseline/015C1E82-FCFE-4000-8FA8-0BE2CF731C38.plist

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<key>com.apple.XCTPerformanceMetric_WallClockTime</key>
1212
<dict>
1313
<key>baselineAverage</key>
14-
<real>0.230000</real>
14+
<real>0.174530</real>
1515
<key>baselineIntegrationDisplayName</key>
1616
<string>Local Baseline</string>
1717
</dict>
@@ -21,7 +21,7 @@
2121
<key>com.apple.XCTPerformanceMetric_WallClockTime</key>
2222
<dict>
2323
<key>baselineAverage</key>
24-
<real>0.326080</real>
24+
<real>0.261330</real>
2525
<key>baselineIntegrationDisplayName</key>
2626
<string>Local Baseline</string>
2727
</dict>
@@ -31,7 +31,7 @@
3131
<key>com.apple.XCTPerformanceMetric_WallClockTime</key>
3232
<dict>
3333
<key>baselineAverage</key>
34-
<real>0.102000</real>
34+
<real>0.099875</real>
3535
<key>baselineIntegrationDisplayName</key>
3636
<string>Local Baseline</string>
3737
</dict>
@@ -41,7 +41,7 @@
4141
<key>com.apple.XCTPerformanceMetric_WallClockTime</key>
4242
<dict>
4343
<key>baselineAverage</key>
44-
<real>0.053000</real>
44+
<real>0.052917</real>
4545
<key>baselineIntegrationDisplayName</key>
4646
<string>Local Baseline</string>
4747
</dict>
@@ -51,7 +51,7 @@
5151
<key>com.apple.XCTPerformanceMetric_WallClockTime</key>
5252
<dict>
5353
<key>baselineAverage</key>
54-
<real>0.013800</real>
54+
<real>0.013000</real>
5555
<key>baselineIntegrationDisplayName</key>
5656
<string>Local Baseline</string>
5757
</dict>
@@ -61,7 +61,7 @@
6161
<key>com.apple.XCTPerformanceMetric_WallClockTime</key>
6262
<dict>
6363
<key>baselineAverage</key>
64-
<real>0.182000</real>
64+
<real>0.148351</real>
6565
<key>baselineIntegrationDisplayName</key>
6666
<string>Local Baseline</string>
6767
</dict>
@@ -71,7 +71,7 @@
7171
<key>com.apple.XCTPerformanceMetric_WallClockTime</key>
7272
<dict>
7373
<key>baselineAverage</key>
74-
<real>0.009810</real>
74+
<real>0.009473</real>
7575
<key>baselineIntegrationDisplayName</key>
7676
<string>Local Baseline</string>
7777
</dict>

0 commit comments

Comments
 (0)