Skip to content

Greatly reduce size on stack of addr tables#510

Merged
rustaceanrob merged 1 commit into2140-dev:masterfrom
rustaceanrob:10-10-reduce-stack
Oct 11, 2025
Merged

Greatly reduce size on stack of addr tables#510
rustaceanrob merged 1 commit into2140-dev:masterfrom
rustaceanrob:10-10-reduce-stack

Conversation

@rustaceanrob
Copy link
Copy Markdown
Collaborator

@rustaceanrob rustaceanrob commented Oct 10, 2025

Closes #509

Limited systems, or otherwise conserative operating systems, may limit the stack size of the thread that the node operates on. Most light clients will not store more than a few hundred peers and even fewer will have tried more than a handful during any given sync session. This reduces the stack size of the table to a far more conservative size so as to avoid a stack overflow.

Limited systems, or otherwise conserative operating systems, may limit
the stack size of the thread that the node operates on. Most light
clients will not store more than a few hundred peers and even fewer will
have tried more than a handful during any given sync session. This
reduces the stack size of the table to a far more conservative size so
as to avoid a stack overflow.
@rustaceanrob rustaceanrob marked this pull request as ready for review October 11, 2025 09:13
@rustaceanrob rustaceanrob merged commit 1fdda5a into 2140-dev:master Oct 11, 2025
10 checks passed
@rustaceanrob rustaceanrob deleted the 10-10-reduce-stack branch October 11, 2025 09:13
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.

Potential overflow of the stack on iOS

1 participant