-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add specialized copy method #143
Conversation
If we skip MOIU.canonical, we get:
|
Codecov Report
@@ Coverage Diff @@
## master #143 +/- ##
==========================================
+ Coverage 84.07% 85.39% +1.32%
==========================================
Files 7 8 +1
Lines 1237 1390 +153
==========================================
+ Hits 1040 1187 +147
- Misses 197 203 +6
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth adding this for the minor speedup then?
So there are a few caveats, |
One difference is that this is allocating way more than the Clp version. Do we know why? |
Clp does not have the CleverDict to keep track of data later, that's my current bet. |
I modified the comparisson scripts:
After
Timing are better because I forced GC in between tests. |
after the PR we have the following: Rough estimates: basically there is still 40% of the time that we are doing bad |
Master:
After last commit:
So we can double the speed in the |
depends on jump-dev/MathOptInterface.jl#1126 |
Following the lines of jump-dev/Clp.jl#94
Add a batch copy, it seems that the batch is not much better than one-by-one for GLPK.
Running the runbench.jl file from the perf folder.
Before this PR we had:
After:
I haven't used the profiler though, there might be some gains.
Moreover, jump-dev/MathOptInterface.jl#1122 could help here.