You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Investigate possibility of using inlined vectors #16118
CoreThe cross-platform C++ core, aka mbglarchivedArchived because of inactivityperformanceSpeed, stability, CPU usage, memory usage, or power usagerefactor
Preliminary profiling (running 1024-symbol render test) shows heap peak increase from master branch: 28.90 MB to stretchable-icons: 29.30 MB, however, memory usage goes back to original level when temporary heap allocated vectors are destructed.
We should investigate where small vectors are used and possibility of inlining those. Few known places in a codebase: ImageStretches in Image, Cuts in quads creation, StyledText in BiDi.
std::array could be used as an inline vector, we could introduce a helper class that would wrap both std::array and std::vector (as a fallback when when the amount of items exceeds the std::array size)
CoreThe cross-platform C++ core, aka mbglarchivedArchived because of inactivityperformanceSpeed, stability, CPU usage, memory usage, or power usagerefactor
Activity
pozdnyakov commentedon Jan 15, 2020
std::array could be used as an inline vector, we could introduce a helper class that would wrap both
std::arrayandstd::vector(as a fallback when when the amount of items exceeds thestd::arraysize)stale commentedon Jul 13, 2020
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.