-
Notifications
You must be signed in to change notification settings - Fork 972
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
refactor(shwap): Extract eds interface #3452
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## shwap #3452 +/- ##
========================================
Coverage ? 43.26%
========================================
Files ? 286
Lines ? 16433
Branches ? 0
========================================
Hits ? 7110
Misses ? 8492
Partials ? 831 ☔ View full report in Codecov by Sentry. |
Drafting until we migrate some funcs over EDS interface |
I've applied review suggestions in 46daf13 and listed what changed in PR description in Additional refactoring section. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
had a very superficial look / review, the interfaces and methods are starting to make sense to me as a layman and someone that might need to use them 😸
One question: is share/new_eds
meant to survive? I wonder if having it organized more like
share/eds/v2
or something would be better than new_eds
?
To @ramin:
Not going to survive. Eventually (in the late shwap PRs) It will land into eds pkg. For now it is not there, because existing eds pkg contains a lot of code and new code would get lost there. Existing eds pkg code will be removed entirely and will be replaced with content of new_eds |
extract switch simplify AxisHalf
- Reintroduce file interface as eds interface. Change aims to allow usage of EDS interface outside of storage package and to be high level interface of EDS methods. - Renames of eds interface methods to align with returned shwap types names - Share() -> Sample - Data -> Row data - Extracts New<shwap_type_name>FromEDS functions to eds file methods - moves associated tests to eds pkg **Additional refactoring:** - **Change Interface Name**: Realized that 'EDS' is a terrible name for an interface. Renamed `eds.EDS` to `eds.Accessor` to more accurately reflect its functionality rather than its internal content. - **Separate Closer**: Extracted `Closer` from `Accessor`. Now it is available in a new composite interface `AccessorCloser`. - **Rename InMem**: Renamed `InMem` to `rsmt2d` to better align with its usage. - **Decouple NamespacedData**: Separated `NamespacedData` from the `rsmt2d` implementation. It is now a standalone function. - **Update EDS Method**: Replaced the `EDS()` method with `Flattened`, similar to `rsmt2d`. Considered introducing two separate methods, `Flattened` and `FlattenedODS`, with the latter to be potentially added later. Proposed to park this suggestion in an issue for future consideration.
- Reintroduce file interface as eds interface. Change aims to allow usage of EDS interface outside of storage package and to be high level interface of EDS methods. - Renames of eds interface methods to align with returned shwap types names - Share() -> Sample - Data -> Row data - Extracts New<shwap_type_name>FromEDS functions to eds file methods - moves associated tests to eds pkg **Additional refactoring:** - **Change Interface Name**: Realized that 'EDS' is a terrible name for an interface. Renamed `eds.EDS` to `eds.Accessor` to more accurately reflect its functionality rather than its internal content. - **Separate Closer**: Extracted `Closer` from `Accessor`. Now it is available in a new composite interface `AccessorCloser`. - **Rename InMem**: Renamed `InMem` to `rsmt2d` to better align with its usage. - **Decouple NamespacedData**: Separated `NamespacedData` from the `rsmt2d` implementation. It is now a standalone function. - **Update EDS Method**: Replaced the `EDS()` method with `Flattened`, similar to `rsmt2d`. Considered introducing two separate methods, `Flattened` and `FlattenedODS`, with the latter to be potentially added later. Proposed to park this suggestion in an issue for future consideration.
- Reintroduce file interface as eds interface. Change aims to allow usage of EDS interface outside of storage package and to be high level interface of EDS methods. - Renames of eds interface methods to align with returned shwap types names - Share() -> Sample - Data -> Row data - Extracts New<shwap_type_name>FromEDS functions to eds file methods - moves associated tests to eds pkg **Additional refactoring:** - **Change Interface Name**: Realized that 'EDS' is a terrible name for an interface. Renamed `eds.EDS` to `eds.Accessor` to more accurately reflect its functionality rather than its internal content. - **Separate Closer**: Extracted `Closer` from `Accessor`. Now it is available in a new composite interface `AccessorCloser`. - **Rename InMem**: Renamed `InMem` to `rsmt2d` to better align with its usage. - **Decouple NamespacedData**: Separated `NamespacedData` from the `rsmt2d` implementation. It is now a standalone function. - **Update EDS Method**: Replaced the `EDS()` method with `Flattened`, similar to `rsmt2d`. Considered introducing two separate methods, `Flattened` and `FlattenedODS`, with the latter to be potentially added later. Proposed to park this suggestion in an issue for future consideration.
Additional refactoring:
Change Interface Name: Realized that 'EDS' is a terrible name for an interface. Renamed
eds.EDS
toeds.Accessor
to more accurately reflect its functionality rather than its internal content.Separate Closer: Extracted
Closer
fromAccessor
. Now it is available in a new composite interfaceAccessorCloser
.Rename InMem: Renamed
InMem
torsmt2d
to better align with its usage.Decouple NamespacedData: Separated
NamespacedData
from thersmt2d
implementation. It is now a standalone function.Update EDS Method: Replaced the
EDS()
method withFlattened
, similar torsmt2d
. Considered introducing two separate methods,Flattened
andFlattenedODS
, with the latter to be potentially added later. Proposed to park this suggestion in an issue for future consideration.