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

Abstract SbqNode in preparation for adding a labeled variant #203

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tjgreen42
Copy link
Contributor

@tjgreen42 tjgreen42 commented Feb 27, 2025

This is a pure refactoring change to introduce a layer of abstraction around SBQ nodes so that we can introduce a labeled variant in a coming PR.

The basic idea is for SbqNode to become an enum wrapper class around the concrete implementations, currently just PlainSbqNode. Since SbqNode has a bunch of derived classes and traits, I had to introduce wrappers for those too, in addition to tweaking some abstractions. (It gets a little ugly, and I'm open to suggestions to find ways to simplify. I did experiment with an alternate approach, which was to add the SBQ node type as a parameter in SbqSpeedupStorage, but this turned out to be equally messy, due to the same plethora of derived traits and classes associated with SbqNode.)

Test strategy: existing unit tests. No new functionality added.

@tjgreen42 tjgreen42 requested a review from a team as a code owner February 27, 2025 16:08
@tjgreen42 tjgreen42 marked this pull request as draft February 27, 2025 16:08
@tjgreen42 tjgreen42 changed the title Wrap SbqNode in preparation for adding a labeled variant Abstract SbqNode in preparation for adding a labeled variant Feb 28, 2025
@tjgreen42 tjgreen42 marked this pull request as ready for review February 28, 2025 00:28
@tjgreen42 tjgreen42 requested review from cevian and syvb February 28, 2025 00:28
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.

1 participant