Re: MacOS Tahoe painfully slow a wxChoice containing 6k entries.
Vadim Zeitlin <[email protected]> Thu, 11 Dec 2025 03:09:50 +0100
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 10 Dec 2025 01:31:15 -0800 (PST) Tony Kennedy wrote:
TK> The wxChoice control has 6500 entries and takes approximately a minute to
TK> clear all entries.
Recommended maximum number of elements for simple controls like wxChoice,
wxComboBox, wxListBox etc is a hundred entries, a couple of hundreds at
most. How can a user possibly select anything in a control with several
thousands of them?
TK> Any advice would be very welcome.
My first advice is to not use wxChoice for this. Maybe you could create
wxWindowUpdateLocker for it before clearing it (and maybe this could be
done by Clear() itself) and perhaps something else could be optimized in
its implementation (it might be deleting items one by one currently instead
of removing them all at once) but it was never supposed to be used with
such numbers of items anyhow.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
https://www.tt-solutions.com/
signature.asc
(application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCaTon7gAKCRAG6kHeT2we hu1gAJ9+WBq1wPt6qBUlXV8hQ39gOvS0EwCfbLeqP9nnC397ZqxVQ6NA19i16Ls= =/DHS -----END PGP SIGNATURE-----