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

internal/Painter: remove configurable edge FBA, use fallback alloc #53

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

vancluever
Copy link
Owner

This removes the configurable FBA for the edge cache, moving it to a fallback allocator instead, with the FBA being a much smaller size, so that we respect the stack a lot more.

The FBA should be enough for 64 edges worst-case scenario each edge is 4 bytes and may be duplicated in the final edge set, so 6442 = 512 bytes. Note that not all edges make it into the final edge set (e.g., during non-zero fill), hence why we say worst-case. This can and will be optimized eventually to allow for more.

This removes the configurable FBA for the edge cache, moving it to a
fallback allocator instead, with the FBA being a much smaller size, so
that we respect the stack a lot more.

The FBA should be enough for 64 edges worst-case scenario each edge is 4
bytes and may be duplicated in the final edge set, so 64*4*2 =
512 bytes. Note that not all edges make it into the final edge set
(e.g., during non-zero fill), hence why we say worst-case. This can and
will be optimized eventually to allow for more.
@vancluever vancluever merged commit 8f3aabc into main Nov 1, 2024
2 checks passed
@vancluever vancluever deleted the painter-fba-tweaks branch November 1, 2024 19:07
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.

1 participant