-
-
Notifications
You must be signed in to change notification settings - Fork 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
Algorithm updates #3638
Algorithm updates #3638
Conversation
cdf5fd6
to
30595e4
Compare
May take longer to dig. I remember when Swift 1.2/2.2 was there, the performance is bad. So @danielgindi choose to write our own? |
89bb04b
to
57bb7a8
Compare
Codecov Report
@@ Coverage Diff @@
## master #3638 +/- ##
==========================================
- Coverage 32.64% 32.61% -0.03%
==========================================
Files 114 114
Lines 10625 10625
==========================================
- Hits 3468 3465 -3
- Misses 7157 7160 +3
Continue to review full report at Codecov.
|
@jjatie 3.3 is just released :) I think we can focus on 4.0 now. So much in plate 😂 |
b14b75d
to
2e95133
Compare
* algorithm updates * Minor code org updates * Relocated util file * Removed duplicated file akjflkajfljk
* master: update changelog. Fixed incorrect guard return statement when rendering limit lines (ChartsOrg#4563) Fix bounds checks on binary search (ChartsOrg#4577) Added SPM build action (ChartsOrg#4576) Replace FBSnapshotTestCase with pointfree/swift-snapshot-testing (ChartsOrg#4574) Import swift algorithms (ChartsOrg#4497) ChartViewBase cleanup (ChartsOrg#4537) SPM GitHub Action (ChartsOrg#4553) Algorithm updates (ChartsOrg#3638) Added SPM Install section Update README.md Fix missing drawIconsEnabled parameter initialization in the copying constructor of the ChartBaseDataSet (ChartsOrg#4424) Resolve conflict for 4.0 branch and master (ChartsOrg#4456) Alternative for SPM dynamic linking (ChartsOrg#4478) 3.6.0 changelog # Conflicts: # Source/Charts/Renderers/LineChartRenderer.swift
Goals ⚽
Inspired by WWDC'18 Embracing Algorithms
Charts relies heavily on custom algorithm implementations. Many of these are common algorithms and should instead rely on the built in implementations. In this PR I have updated the obvious candidates.
I have intentionally omitted the longer algorithms as some A) are unique algorithms and B) can become much simpler with some additional changes in the framework (i.e.
Collection
conformances introduced in 4.0.0).