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

Specs2 var Optimization #609

Draft
wants to merge 1 commit into
base: series/1.x
Choose a base branch
from

Conversation

bpholt
Copy link
Member

@bpholt bpholt commented Nov 22, 2024

This PR, which really starts at dccb2b8, addresses a comment @armanbilge made in #608. I thought it best to move that conversation to a separate PR because I'm not entirely sure why this code was originally implemented with three vars when I think even originally it could have been one.

@djspiewak
Copy link
Member

I'm semi-impartial either way. This isn't a contended var, so we don't have to reason about atomicity across multiple writes, meaning this is a code organization thing. It was more clear to me as multiple vars, but if it's more clear to anyone else as a single var, then let's go for it!

@bpholt
Copy link
Member Author

bpholt commented Dec 3, 2024

This was something @armanbilge requested. @armanbilge what do you think?

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