[Tizen] Improve Textfit performance 61/304261/1
authorANZ1217 <chihun.jeong@samsung.com>
Fri, 29 Dec 2023 01:01:13 +0000 (10:01 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Mon, 15 Jan 2024 02:32:34 +0000 (11:32 +0900)
commitb39ec1cdeb0df9b33403615f7462a424d3f35701
tree4b3834e820b170f60daa4282e3b9114a02ce7ed1
parentc6f7a9a8faf7714f8f9a65c34926885373c6b792
[Tizen] Improve Textfit performance

We can assume point size of text and size of text's layout
are directly proportional.
So the size of the largest text point size
can be calculated by O(1) operations.
Previously, this was O(logn) operations.

Change-Id: Ie5aae28e949738ce0f67e389f3e920663f4e19bc
automated-tests/src/dali-toolkit/utc-Dali-TextLabel.cpp
dali-toolkit/internal/text/controller/text-controller-relayouter.cpp