Skip to content

Improve attribute lookup and indexing across all Set-backed collections#337

Merged
afuno merged 3 commits into
mainfrom
feature/SRV-435/find_by
Feb 11, 2026
Merged

Improve attribute lookup and indexing across all Set-backed collections#337
afuno merged 3 commits into
mainfrom
feature/SRV-435/find_by

Conversation

@afuno
Copy link
Copy Markdown
Member

@afuno afuno commented Feb 11, 2026

No description provided.

- Added `attributes_index` to optimize attribute lookups by name.
- Replaced `find`-based attribute lookup with hash-based retrieval for improved performance.
- Updated delegation to include `each_with_object`.
- Enhanced readability and consistency by renaming variables from `item` to `attribute`.
- Updated RBS signatures to reflect changes in indexing and naming.
- Added detailed inline documentation for `Collection` subclasses to improve clarity on purpose, usage, and performance characteristics.
- Introduced hash-based lookups for optimized attribute and helper indexing in `OptionHelpersCollection` and `Attributes::Collection`.
- Updated delegation methods to include more enumeration methods like `each_with_object` and `flat_map`.
- Enhanced constructor and duplication handling to support memoization resets.
- Revised RBS signatures to align with new indexing and caching structures.
@afuno afuno added this to the v3.1.0 milestone Feb 11, 2026
@afuno afuno self-assigned this Feb 11, 2026
@afuno afuno added the polish label Feb 11, 2026
@afuno afuno marked this pull request as ready for review February 11, 2026 10:24
- Reorganized `def_delegators` formatting for improved readability.
- Removed redundant delegations (`find` in `Options::Collection`) to simplify code.
- Aligned delegator styles across `OptionHelpersCollection`, `Attributes::Collection`, and `Options::Collection`.
@afuno afuno merged commit 9adcef9 into main Feb 11, 2026
37 checks passed
@afuno afuno deleted the feature/SRV-435/find_by branch February 11, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant