Skip to content

Conversation

@devmotion
Copy link
Collaborator

Since UnPack.@unpack is based on unpack(x, Val(key)) it can lead to a lot of undesired specializations, see e.g. SciML/OrdinaryDiffEq.jl#1893. Therefore I put together a more lightweight macro that just calls getproperty in https://github.com/devmotion/SimpleUnPack.jl (by design, it has less features than UnPack.jl).

Initially I wanted to replace UnPack with SimpleUnPack in this package but then I noticed that apparently UnPack.@unpack is only used in the docs and not needed in the package itself anymore. It seems it was only used in the part that was moved to LogDensityProblemsAD. Hence I removed UnPack from the package and the tests, and only switched to SimpleUnPack in the docs.

Copy link
Owner

@tpapp tpapp left a comment

Choose a reason for hiding this comment

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

Perfect, thanks!

@tpapp tpapp merged commit e087000 into master Mar 8, 2023
@tpapp tpapp deleted the dw/unpack branch March 8, 2023 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants