) on an empty window. What can I do to improve its performance? Is it more realistic to just write my own control for this, keeping the feature set to my minimum requirements? If so, any links to resources would be greatly appreciated.
It's worth noting that the amount of data in the RichTextBox can be really small; what I was trying to make clear was that it's the format of the text that really had the biggest impact on performance.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
对于文本框的新实现来说,这并不是一个不寻常的问题。它与用于计算换行符的算法有关。根据您报告的行为类型,听起来他们使用的算法的效率很大程度上取决于单词的长度(即,相对于单词的长度,它可能是 O(n^2) )。您应该直接向 Microsoft 报告此问题(并提供清晰的示例),以便他们可以修复该错误。
This is not an unusual problem for new implementations of text boxes. It has to do with the algorithm used for calculating line breaks. Based on the kind of behaviour you're reporting, it sounds like the efficiency of the algorithm they use is strongly dependent on the length or words (i.e. it might be, say, O(n^2) with respect to the length of words). You should report this directly to Microsoft (with a clear example) so that they can fix the bug.