-
Notifications
You must be signed in to change notification settings - Fork 19
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
Avoid std::list if possible #619
Comments
Merged
IVlaD17
added a commit
that referenced
this issue
Feb 9, 2022
IVlaD17
added a commit
that referenced
this issue
Feb 10, 2022
IVlaD17
added a commit
that referenced
this issue
Feb 10, 2022
IVlaD17
added a commit
that referenced
this issue
Feb 10, 2022
IVlaD17
added a commit
that referenced
this issue
Feb 15, 2022
IVlaD17
added a commit
that referenced
this issue
Feb 16, 2022
IVlaD17
added a commit
that referenced
this issue
Feb 16, 2022
IVlaD17
added a commit
that referenced
this issue
Feb 16, 2022
IVlaD17
added a commit
that referenced
this issue
Feb 16, 2022
IVlaD17
added a commit
that referenced
this issue
Mar 7, 2022
IVlaD17
added a commit
that referenced
this issue
Mar 8, 2022
IVlaD17
added a commit
that referenced
this issue
Mar 8, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
std::list
is very useful as a container since it maintains references to objects on insertion / deletion (unlikestd::vector
) however it it has a larger footprint per item in the container, and does not store objects contiguously in memory. It should be replaced with other containers where possible to do so:Current Uses
Data1DStore
(asstd::list<std::pair<Data1D, Data1DImportFileFormat>>
)Data2DStore
(asstd::list<std::pair<Data2D, Data2DImportFileFormat>>
)Data3DStore
(asstd::list<std::pair<Data3D, Data3DImportFileFormat>>
)CoreData
(asstd::list<MasterIntra>
) - it appears allstd::list
usages have been replaced withstd::vector
SpeciesAtom
(asstd::list<SpeciesAtom>
) - it appears allstd::list
usages have been replaced withstd::vector
combopopulator.h
,tablewidgetupdater.h
,treewidgetupdater.h
) takestd::list
as data.The text was updated successfully, but these errors were encountered: