TLDR; 128.5.2 is a vast improvement here. A couple of months ago I did get a bit of time to start looking into this. To help with that, and for anyone else that wants to look into large inbox behavior in the future, I did set up a docker image with imap inboxes of various sizes. You can find that at https://hub.docker.com/r/janzert/mailbox-size-test Some local times (w/ profile linked) to open the unified inbox, with 300k messages: - 128.4.0: [~37 minutes](https://share.firefox.dev/3PicO3J) - 128.5.2: [<52 seconds](https://share.firefox.dev/4a2pANF) - 128.5.2 online search disabled: [<40 seconds](https://share.firefox.dev/3PfQVlQ) with 100k messages: - 128.4.0: [~2m40s](https://share.firefox.dev/4iXc69U) - 128.5.2: [<6 seconds](https://share.firefox.dev/41ZjBXI) - 128.5.2 online search disabled: [~5 seconds](https://share.firefox.dev/4fFKN0X) A quick perusal of the profiles looks like most if not all the improvement comes from nsMsgSearchSession::AddSearchHit and its underlying use of the mork db improving.
Bug 1098069 Comment 76 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
TLDR; 128.5.2 is a vast improvement here. A couple of months ago I did get a bit of time to start looking into this. To help with that, and for anyone else that wants to look into large inbox behavior in the future, I did set up a docker image with imap inboxes of various sizes. You can find that at https://hub.docker.com/r/janzert/mailbox-size-test Some local times (w/ profile linked) to open the unified inbox, one account with 1k messages and one... with 300k messages: - 128.4.0: [~37 minutes](https://share.firefox.dev/3PicO3J) - 128.5.2: [<52 seconds](https://share.firefox.dev/4a2pANF) - 128.5.2 online search disabled: [<40 seconds](https://share.firefox.dev/3PfQVlQ) with 100k messages: - 128.4.0: [~2m40s](https://share.firefox.dev/4iXc69U) - 128.5.2: [<6 seconds](https://share.firefox.dev/41ZjBXI) - 128.5.2 online search disabled: [~5 seconds](https://share.firefox.dev/4fFKN0X) A quick perusal of the profiles looks like most if not all the improvement comes from nsMsgSearchSession::AddSearchHit and its underlying use of the mork db improving.