Page MenuHomePhabricator

text objects: Lazy loading for color glyphs (emoji's)
Closed, ResolvedPublic

Description

Glyphs images loaded and saved in memory at layouting level.
This means even if the size of text block is very small in comparison to its content, all glyphs images will be saved in the RAM.

The Idea is only cached at the drawing level. (** currently we are targeting color glyphs because these one allocate a lot of memory).

After applying this change:

  • There is not much memory allocated at first (only for the visible part of the text).
  • As soon as users start scrolling glyphs images will be loaded and memory will increase.
  • If the user scroll reaches the bottom all glyphs images are loaded, and memory will be stable(no increment).

TODO:
Add global configuration options to enable or disable it

ali.alzyod triaged this task as Normal priority.
ali.alzyod updated the task description. (Show Details)May 20 2020, 3:39 AM
ali.alzyod closed this task as Resolved.Mon, Jul 6, 11:07 PM