-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Update ArrayExtensions.swift #1226
Conversation
For creating a dictionary.Dictionary(uniqueKeysWithValues:) is more efficient than reduce(into:) to. i used time profile and found a significant improvement.
let items = (1...1000000).map { String($0) } func createDictUsingUniqueKeysWithValues() { func createDictUsingReduce() { time profile result: items = (1...100000000).map { String($0) } |
Darwin error: |
Generated by 🚫 Danger |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1226 +/- ##
=======================================
Coverage 68.22% 68.22%
=======================================
Files 98 98
Lines 3647 3647
=======================================
Hits 2488 2488
Misses 1159 1159
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
For creating a dictionary.Dictionary(uniqueKeysWithValues:) is more efficient than reduce(into:) to. i used time profile and found a significant improvement.
Checklist
@available
if not.