question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

7.x release date?

See original GitHub issue

When will 7.x be stable? We use and like iter-tools but would like to avoid upgrading to a release candidate in production.

Our biggest issues with 6.x are lack of a few functions (asyncFork, asyncSplitAt, asyncTakeSorted, asyncIsEmpty) and asyncFilter performance.

const n = 100000;
const evens = await iter.pipe(
  iter.range(n),
  iter.asyncFilter(async (n) => n % 2 == 0),
  iter.asyncToArray,
);

Takes 700ms on my machine, but takes a more reasonable 150ms with v7.0.0-rc.0. Replacing asyncFilter with

function asyncFilter<T>(predicate: (t: T) => iter.MaybePromise<boolean>) {
  return async function* (iterable: iter.AsyncIterableLike<T>) {
    for await (const i of iterable) {
      if (await predicate(i)) {
        yield i;
      }
    }
  };
}

makes that function take ~40ms.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (17 by maintainers)

github_iconTop GitHub Comments

2reactions
conartist6commented, Oct 22, 2020

Just to report I’m working steadily on the full v7.0.0 now. To my goal of not including anything unsound I’m reworking regex-based splitting. Right now I’m putting together @iter-tools/regex for evaluating regular expressions in a fully streaming fashion against iterables, and that should then unblock the rest of the string refactoring work.

1reaction
conartist6commented, Nov 30, 2020

It’s looking like it might be today or tomorrow!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Pixel 7 release date, price and features
The Pixel 7 series were first teased by Google in May 2022, but officially and fully unveiled on October 6th, 2022, with the...
Read more >
Cisco Nexus 7000 Series Switches - Release Notes
Release 7.x. Cisco Nexus 7000 Series NX-OS Release Notes, Release 7.3 10/Feb/2022; Cisco Nexus 7000 Series NX-OS Release Notes, Release 7.2 10/May/2020 ......
Read more >
VMware ESXi 7.0 Update 3i Release Notes
Name and Version, Release Date, Category, Detail ... The typical way to apply patches to ESXi 7.x hosts is by using the vSphere...
Read more >
VMware vSphere 7.x on Dell PowerEdge Systems Release ...
The current release of VMware vSphere incorporates feature upgrades, new hardware, feature support, and bug fixes that enhance the virtualization experience in ...
Read more >
Release Notes - The PHP Framework For Web Artisans
Laravel 7 continues the improvements made in Laravel 6.x by introducing Laravel Sanctum, routing speed improvements, custom Eloquent casts, Blade component ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found