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

Allow to preallocate space for blocks #80

Open
homonoidian opened this issue Jan 4, 2023 · 0 comments
Open

Allow to preallocate space for blocks #80

homonoidian opened this issue Jan 4, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@homonoidian
Copy link
Collaborator

In certain words we know the size of the resulting block ahead-of-time. To avoid reallocs on larger blocks, we could allow to preallcoate the resulting block. E.g. in map we know the size (although I don't quite remember).

A huge question is how to present such a thing. Having something like "( N -- B )" orphanFor would work, I suppose, with an infix version e.g. orphanFor: 100.

The block would still look empty, though. Idk if this is a good idea.

@homonoidian homonoidian added the enhancement New feature or request label Jan 4, 2023
@homonoidian homonoidian self-assigned this Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant