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

Vector optimize for reallocations #3

Open
jxy-s opened this issue Apr 26, 2024 · 0 comments
Open

Vector optimize for reallocations #3

jxy-s opened this issue Apr 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jxy-s
Copy link
Collaborator

jxy-s commented Apr 26, 2024

Description of the feature, modification, idea, or suggestion.

The allocator contract was originally in-flux when Vector was originally being developed. As such the reallocation capability on the allocator contract did not exist yet.

Vector can take advantage of the ability to reallocate a block of memory through the allocator in paths where a new allocation must occur.

Proposed implementation details (optional)

Vector should take advantage of the reallocation capability of the allocator contract to optimize resizing of the underlying block of memory whenever possible.

@jxy-s jxy-s added the enhancement New feature or request label Apr 26, 2024
adam-fonseca pushed a commit to adam-fonseca/radiant-cpp that referenced this issue Jul 22, 2024
Merge in SEN/radiant-cpp from upstream-sync-2 to sensor-main

* commit '2db8d56da1d01fdfc18586755261b6a4d77e775e':
  Revert "Provide strong guarantee for rad::Vector"
  allocator concept requirements
  Forgot to set the size to 0
  fix formatting errors
  Move clear out of class and use DtorRange
  refactor to remove uncovered line
  Fix build for mac and windows
  Provide strong guarantee for rad::Vector
  rename Handle to UniqueResource
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