Skip to content

Conversation

odow
Copy link
Member

@odow odow commented Sep 3, 2025

x-ref #2829

@odow odow marked this pull request as draft September 3, 2025 22:12
@odow
Copy link
Member Author

odow commented Sep 3, 2025

These cut 100k method instances. Still need to benchmark properly.

julia> length(after)
262910

::Type{<:AbstractBridge},
::Type{<:MOI.AbstractFunction},
::Type{<:MOI.AbstractSet},
@nospecialize(BT::Type{<:AbstractBridge}),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one should be safe

b::LazyBridgeOptimizer,
::Type{BT},
) where {BT<:AbstractBridge}
@nospecialize(b::LazyBridgeOptimizer),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All these shouldn't affect performance, it's a must do indeed

::Type{S},
) where {F<:MOI.AbstractFunction,S<:MOI.AbstractSet}
@nospecialize(model::AbstractModel),
@nospecialize(F::Type{<:MOI.AbstractFunction}),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one may be more dangerous

::Type{<:AbstractFunction},
::Type{<:AbstractSet},
@nospecialize(::ModelLike),
@nospecialize(F::Type{<:AbstractFunction}),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it's a fallback returning false, I don't believe it will affect the performance of bottleneck to looks good

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.

2 participants