Ticket #9012 (closed optimization: fixed)
wxTextCtrl::AppendText Mac Unicode Optimization
| Reported by: | whschultz | Owned by: | csomor |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wxOSX-Carbon | Version: | |
| Keywords: | Cc: | whschultz, csomor | |
| Blocked By: | Patch: | yes | |
| Blocking: |
Description
If you call AppendText many times on a wxTextCtrl that is full of text, there is a rather obvious slowdown. I narrowed this down to wxMacMLTEControl::GetLastPosition.
The existing implementation converts the text to ASCII in order to find the last position. If the text is already in ASCII (non-unicode build), this isn't an issue (I didn't test). If the text unicode, this is a huge issue.
This patch finds the last position in a unicode build without converting the contents of the wxTextCtrl to ASCII.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

