How to reduce StaticLayout delay when using long text
问题 I use StaticLayout to paginate my text to create an epub application, and I have a text that has 16,000 lines. The StaticLayout object is created about 6 seconds later and it's very slow. How can I reduce this time or is there another way to use StaticLayout instead? 回答1: The problem is that you're trying to lay out the whole thing at once. Laying out 16,000 lines of text is expensive . It's going to take a nontrivial amount of time even on a desktop computer with a powerful CPU, and you're