Improve Textfit performance 02/303502/16
authorANZ1217 <chihun.jeong@samsung.com>
Fri, 29 Dec 2023 01:01:13 +0000 (10:01 +0900)
committerANZ1217 <chihun.jeong@samsung.com>
Wed, 10 Jan 2024 04:08:44 +0000 (13:08 +0900)
commite0047bbf4fbff8198752164592f43bb58ed62e59
tree816690cad7662534968d0b64ffd0c9fc6480da22
parent5c75b9376dd7577a927e9aad797479e1cd831e11
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