Heuristic optimize on GetFontId 58/276258/3
authorEunki, Hong <eunkiki.hong@samsung.com>
Mon, 13 Jun 2022 13:08:02 +0000 (22:08 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Mon, 13 Jun 2022 14:08:25 +0000 (23:08 +0900)
commita51cbed012cbf4b479c359b4ab336cd5b4dc704c
treeb17691c7511de3ddd114025f029c3f09ea6d7f1d
parenta5acf7aac9b977128dd71f1e995884548b951523
Heuristic optimize on GetFontId

Most of case, we use same font and size continously.
So before find container, We can re-use latest comparision.

GetFontId called for every characters.
So, minor reducing will help to whole runtime.

Change-Id: I291655c709b9bafa62c7d4f6b669eff589b1766e
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/text/text-abstraction/plugin/font-client-plugin-impl.cpp
dali/internal/text/text-abstraction/plugin/font-client-plugin-impl.h