Skip to content
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

Improve precompilation with nospecialize and some more SnoopPrecompile #3195

Merged
merged 2 commits into from
Jan 23, 2023

Conversation

odow
Copy link
Member

@odow odow commented Jan 22, 2023

x-ref jump-dev/MathOptInterface.jl#2226

julia> @time @eval begin
           let
               model = Model(HiGHS.Optimizer)
               @variable(model, x >= 0)
               @variable(model, 0 <= y <= 3)
               @objective(model, Min, 12x + 20y)
               @constraint(model, c1, 6x + 8y >= 100)
               @constraint(model, c2, 7x + 12y >= 120)
               optimize!(model)
           end
       end;
Running HiGHS 1.4.0 [date: 1970-01-01, git hash: bcf6c0b22]
Copyright (c) 2022 ERGO-Code under MIT licence terms
Presolving model
2 rows, 2 cols, 4 nonzeros
2 rows, 2 cols, 4 nonzeros
Presolve : Reductions: rows 2(-0); columns 2(-0); elements 4(-0) - Not reduced
Problem not reduced by presolve: solving the LP
Using EKK dual simplex solver - serial
  Iteration        Objective     Infeasibilities num(sum)
          0     0.0000000000e+00 Pr: 2(220) 0s
          2     2.0500000000e+02 Pr: 0(0) 0s
Model   status      : Optimal
Simplex   iterations: 2
Objective value     :  2.0500000000e+02
HiGHS run time      :          0.00
  0.639640 seconds (436.39 k allocations: 29.309 MiB, 98.57% compilation time)

@codecov
Copy link

codecov bot commented Jan 22, 2023

Codecov Report

Base: 98.06% // Head: 98.06% // No change to project coverage 👍

Coverage data is based on head (20c6d89) compared to base (83b10b9).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    jump-dev/JuMP.jl#3195   +/-   ##
=======================================
  Coverage   98.06%   98.06%           
=======================================
  Files          33       33           
  Lines        4600     4600           
=======================================
  Hits         4511     4511           
  Misses         89       89           
Impacted Files Coverage Δ
src/optimizer_interface.jl 95.87% <ø> (ø)
src/JuMP.jl 96.82% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@odow odow merged commit ced2ccc into master Jan 23, 2023
@odow odow deleted the od/precompile branch January 23, 2023 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant