Skip to content

Comments

refactor: avoid extra specialization in lock closure#115

Merged
ChrisRackauckas merged 1 commit intoSciML:masterfrom
AayushSabharwal:as/lock-closure
Feb 2, 2026
Merged

refactor: avoid extra specialization in lock closure#115
ChrisRackauckas merged 1 commit intoSciML:masterfrom
AayushSabharwal:as/lock-closure

Conversation

@AayushSabharwal
Copy link
Member

@AayushSabharwal AayushSabharwal commented Feb 2, 2026

The lock function captures the RGF, and every call to drop_expr causes it to recompile the lock call as well. This change makes it use the @lock macro, which avoids the closure.

@ChrisRackauckas ChrisRackauckas merged commit e6b658b into SciML:master Feb 2, 2026
13 checks passed
@AayushSabharwal AayushSabharwal deleted the as/lock-closure branch February 2, 2026 12:25
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.

2 participants