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

core: remove generational-arena #424

Merged
merged 1 commit into from
Dec 27, 2020
Merged

Conversation

tony-iqlusion
Copy link
Member

The original idea behind using generational-arena for component storage was to support some kind of component reloading.

However, components aren't anywhere close to finished, and in the meantime using something like generational-arena for this purpose is a premature "optimization" which makes refactoring components more difficult and introduces an unnecessary dependency.

This commit replaces generational-arena with a Vec, which is good enough for now.

This is simple enough to swap out that the API is pretty much unchanged.

@tarcieri tarcieri force-pushed the core/remove-generational-arena branch 2 times, most recently from 23a383c to 6cb8ba0 Compare December 27, 2020 21:31
The original idea behind using `generational-arena` for component
storage was to support some kind of component reloading.

However, components aren't anywhere close to finished, and in the
meantime using something like `generational-arena` for this purpose is a
premature "optimization" which makes refactoring components more
difficult and introduces an unnecessary dependency.

This commit replaces `generational-arena` with a `Vec`, which is good
enough for now.

This is simple enough to swap out that the API is pretty much unchanged.
@tarcieri tarcieri force-pushed the core/remove-generational-arena branch from 6cb8ba0 to c831f86 Compare December 27, 2020 21:46
@tony-iqlusion tony-iqlusion merged commit 326a324 into main Dec 27, 2020
@tony-iqlusion tony-iqlusion deleted the core/remove-generational-arena branch December 28, 2020 01:04
@tony-iqlusion tony-iqlusion mentioned this pull request Feb 11, 2022
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.

None yet

1 participant