Skip to content

Memoize sorted_by_position in stages and actions collections#340

Merged
afuno merged 2 commits into
mainfrom
feature/SRV-434/sorted_by_position
Feb 11, 2026
Merged

Memoize sorted_by_position in stages and actions collections#340
afuno merged 2 commits into
mainfrom
feature/SRV-434/sorted_by_position

Conversation

@afuno
Copy link
Copy Markdown
Member

@afuno afuno commented Feb 11, 2026

No description provided.

- Added caching for `sorted_by_position` method to optimize performance by avoiding redundant computations in `Collection` and `Stage`.
- Introduced several utility methods (`<<`, `merge`, `to_h`, `sort_by`, `size`, `empty?`) to enhance `Collection` flexibility and usability.
- Updated type signatures for better clarity and accuracy in `collection.rbs`.
- Renamed instance variable `@sorted` to `@sorted_by_position` for improved readability and alignment with method naming.
- Updated logic in `sorted_by_position` methods across `Collection` and `Stage` to reflect the renaming.
- Adjusted type signatures in corresponding `.rbs` files to maintain consistency.
@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 feature label Feb 11, 2026
@afuno afuno marked this pull request as ready for review February 11, 2026 14:26
@afuno afuno merged commit 1666af2 into main Feb 11, 2026
37 checks passed
@afuno afuno deleted the feature/SRV-434/sorted_by_position branch February 11, 2026 14:30
@afuno afuno added polish and removed feature labels Feb 12, 2026
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