Apple Mail completely breaks when you have 100.000+ mails in an IMAP account. Even on MacOS it‘s unusable (search, index) while Thundebird works flawlessly.
Proof: Copy 10k files from one hard drive to another with the Finder (not the same drive; you have to prevent COW). Now do the same thing with e.g. cp or rsync on the command line.
Used to work at the Apple store and it was incredible how a handful of customers dropped thousands of files onto the desktop which in turn brought Finder to its knees.
Probably generating thumbnails or indexing is my unscientific guess