Is VCL significantly slower with Japanese texts?

I am using RAD Studio XE7 (C ++ Builder). For one of my projects, the main form contains several components, such as panels, buttons, labels, edit fields, ... and some of them activate the "auto-size" property. Until now, I have always shown English texts on this interface, and his opening remarks were acceptable.

I recently translated this interface into Japanese. I noticed that opening times were much slower.

Using the Profiler (Brilliant), I measured the difference between the two. I noticed that VCL can handle several properties, such as position and size, up to 10x slower when the Japanese interface opens. A performance leak appears clearly while properties such as pControl-> Width or pControl-> Margins-> Top change. I have not modified a single line of code between both versions, only texts in DFM files, nothing more.

I can’t believe that VCL performance can degrade as much as possible. Is there a known issue in VCL about performances with Japanese lyrics? What are the best methods to prevent such a scenario from using VCL controls?

+5
source share

Source: https://habr.com/ru/post/1269913/


All Articles