That made me sit up, because I'd always thought my distrust of non-mbox folders meant I was stuck with UW. So I downloaded and installed Dovecot (it's not in the docs that I could find, but it turns out you can do preauthenticated IMAP-over-SSH using "ssh server exec /usr/libexec/dovecot/imap"), but disappointingly it's not noticeably faster. I think what this probably means is that UW itself has got faster and more efficient over the years -- I'm using version "imap-2007".
That is very surprising, I didn't realise UW was still under active development. I don't remember what the last version of UW I used was, but moving to dovecot was a huge improvement. It wasn't just a little bit faster, it was massively faster (while also placing much less load on the server).