Skip to content

Conversation

@Stattek
Copy link
Owner

@Stattek Stattek commented Nov 27, 2025

Optimizes background to avoid copying extra data.
Optimize generic_converter to use a single vector instead of a Vec<Vec<_>>.

  • Fix visibility of conversion module so it can't be used outside the crate.
  • Add asserts to generic_converter to prevent attempting to render bad data later.

- Create vectors with capacities to avoid as much memory allocation.
- Preallocate memory for our 2d vec when we can.
- Make the 2d vec of images a single vec instead of a Vec<Vec<_>>.
@Stattek Stattek merged commit 07e04be into master Nov 27, 2025
2 checks passed
@Stattek Stattek deleted the less-easy-optimizations branch November 27, 2025 05:20
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.

2 participants