Skip to content

renderers: avoid copying the table for each row separator - #4

Merged
titanomachy merged 1 commit into
titanomachy:masterfrom
pacien:fix-quadratic-row-separators
Sep 28, 2026
Merged

titanomachy merged 1 commit into
titanomachy:masterfrom
pacien:fix-quadratic-row-separators

Conversation

@pacien

@pacien pacien commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

partialRule declared crosses as a nested proc capturing the table and owners parameters, which made it a closure whose environment receives a copy of both on each call! This made rendering with row separators quadratic in the number of rows. Using a template avoids the closure.

GitHub: fixes #3

partialRule declared crosses as a nested proc capturing the table and
owners parameters, which made it a closure whose environment receives a
copy of both on each call! This made rendering with row separators
quadratic in the number of rows. Using a template avoids the closure.

GitHub: fixes titanomachy#3
@titanomachy
titanomachy merged commit b89f5f5 into titanomachy:master Sep 28, 2026
9 checks passed
@titanomachy

Copy link
Copy Markdown
Owner

Thanks!

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.

Quadratic explosion when rendering with row separators

2 participants