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

Makes BackendTask.combine stack safe #412

Merged
merged 4 commits into from
Sep 24, 2023

Conversation

andrewMacmurray
Copy link
Contributor

@andrewMacmurray andrewMacmurray commented Aug 11, 2023

Hi 👋 I thought I'd suggest adding these from my explorations in making stack safe tasks!

Currently if you run BackendTask.combine with lots of tasks (> 10K on my machine) it blows up, but weirdly if you sub-batch smaller lists of tasks and re-concat them at the end it works with ~1M tasks. It's a bit of a weird trick and there's probably a way of doing it without the Lists but that's the best I've found so far (I have tried many, many things! 😂 ).

@netlify
Copy link

netlify bot commented Aug 11, 2023

👷 Deploy request for elm-pages-todos pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 9b40c77

@andrewMacmurray andrewMacmurray changed the title Stack safe helpers for combine and sequence Stack safe helpers for BackendTask combine and sequence Aug 11, 2023
@andrewMacmurray andrewMacmurray changed the title Stack safe helpers for BackendTask combine and sequence Makes BackendTask.combine stack safe Sep 13, 2023
@dillonkearns dillonkearns merged commit daeb4f4 into dillonkearns:master Sep 24, 2023
1 check passed
@dillonkearns
Copy link
Owner

Thanks so much for the PR Andrew! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants