Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Investigate possibility of using inlined vectors #16118

Closed

Description

@alexshalamov

The issue was raised in #16030 (comment).

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.

Activity

  1. added
    performance
    Core
    on Jan 15, 2020
  2. pozdnyakov commented on Jan 15, 2020

    @pozdnyakov
    Contributor

    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)

  3. added
    archived
    on Jul 13, 2020
  4. stale commented on Jul 13, 2020

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Corearchivedperformancerefactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions