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

Change: FastListCore initialization to be lazy #107

Merged
merged 1 commit into from
Mar 17, 2024
Merged

Conversation

AnnulusGames
Copy link
Owner

@AnnulusGames AnnulusGames commented Mar 17, 2024

FastListCore runs the risk of forgetting to initialize, plus an empty list can cause an infinite loop in resize. To avoid this (and to avoid unnecessary allocations), the initialization process is delayed.

@AnnulusGames AnnulusGames merged commit cf2aa69 into main Mar 17, 2024
@AnnulusGames AnnulusGames deleted the fix-fastlistcore branch March 17, 2024 10:36
@Akeit0
Copy link
Contributor

Akeit0 commented Mar 17, 2024

Intialization on EnsureCapacity should be optimized to avoid unnecessary array allocation.

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