Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
oneeyedpigeon
on Jan 27, 2019
|
parent
|
context
|
favorite
| on:
Show HN: Solve and generate mazes with JavaScript ...
I put in a value of 500, and while it didn't freeze completely, it really struggled to respond.
davidim
on Jan 27, 2019
[–]
Recursive division may be elegant, but it seems that may also have its disadvantages.
wakamoleguy
on Jan 27, 2019
|
parent
[–]
One trick you could use is to add a setTimeout or asnyc/await somewhere during the recursion. By forcing a step to be asynchronous, the stack count will be reset.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: