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

feat(collections/unstable): support Iterable argument in slidingWindows #6095

Merged
merged 11 commits into from
Oct 16, 2024

Conversation

Liam-Tait
Copy link
Contributor

@Liam-Tait Liam-Tait commented Oct 7, 2024

Support Iterable for slidingWindows

While working here I have made the errors a bit more granular.

With light benchmarking I have also made the array use case around ~2x faster (on my machine).

  • Remove the benchmark before merging (causing lint error as it is not exported)

#5470

@Liam-Tait Liam-Tait changed the title liam/sliding windows iterable feat(collections/unstable): support Iterable argument in slidingWindows Oct 7, 2024
Copy link

codecov bot commented Oct 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.57%. Comparing base (065296c) to head (5754288).
Report is 20 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6095      +/-   ##
==========================================
- Coverage   96.75%   96.57%   -0.19%     
==========================================
  Files         509      535      +26     
  Lines       39175    40583    +1408     
  Branches     5795     6095     +300     
==========================================
+ Hits        37905    39193    +1288     
- Misses       1228     1346     +118     
- Partials       42       44       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Liam-Tait Liam-Tait force-pushed the liam/sliding-windows-iterable branch from 1ef1dad to db5c445 Compare October 7, 2024 12:44
@Liam-Tait Liam-Tait marked this pull request as ready for review October 7, 2024 12:48
@Liam-Tait Liam-Tait requested a review from kt3k as a code owner October 7, 2024 12:48
Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@kt3k kt3k merged commit 45be5d3 into denoland:main Oct 16, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants