Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Prevent Maximum call stack exceeded when calculating min/max for huge data sets#2803

Open
ronnqvistandreas wants to merge 1 commit intoplouc:masterfrom
ronnqvistandreas:master
Open

Prevent Maximum call stack exceeded when calculating min/max for huge data sets#2803
ronnqvistandreas wants to merge 1 commit intoplouc:masterfrom
ronnqvistandreas:master

Conversation

@ronnqvistandreas
Copy link

Math.min and Math.max cannot handle more than about 160k entries. This PR fixes this by chunking the entries, calculating the min/max for each chunk, and only then calculating the true min/max.

@vercel
Copy link

vercel bot commented Oct 21, 2025

@AndreasRonnqvistC is attempting to deploy a commit to the plouc's projects Team on Vercel.

A member of the Team first needs to authorize it.

@stale
Copy link

stale bot commented Feb 4, 2026

This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated.

@stale stale bot added the stale label Feb 4, 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.

2 participants