Thanks to Ticket #7 from isharra, bbPress now has mysqli support. I can’t really tell too big a difference in the speed between mysqli and mysql, but every bit helps. If you run MySQL 4.1 and have mysqli support compiled into PHP then the improved functions are automatically used. If not, don’t worry about it.