DBI-1.55は結構良さそう
DBI::Changes - List of significant changes to the DBI - metacpan.orgによれば、
今回は結構意欲的なバージョンアップのようですね。
パフォーマンス面
- Changed some handle creation code from perl to C code, to reduce handle creation cost by ~20%.
- Changed connect_cached and prepare_cached to avoid a FETCH method call, and thereby reduced cost by ~5% and ~30% respectively.
handleを生成するコードがperllからCになって、速くなったみたいですね。
それとconnect_cached, prepared_cachedも改善してるみたいです。*1
機能面
- Added more functionality to the (undocumented) Callback mechanism. Callbacks can now elect to provide a value to be returned, in which case the method won't be called. A callback for "*" is applied to all methods that don't have their own callback.
- Added $h->{ReadOnly} attribute.
callbackが実装されたみたいですね。面白そう。
ReadOnlyって言う属性も追加されたみたい。slaveなんかには敢えて立てておいた方が安全ですね。*2