Start caching the result of various bind_attribute_by_data_type invocations
authorPeter Rabbitson <ribasushi@cpan.org>
Thu, 24 Nov 2011 13:49:11 +0000 (14:49 +0100)
committerPeter Rabbitson <ribasushi@cpan.org>
Fri, 25 Nov 2011 07:25:19 +0000 (08:25 +0100)
commit8892d8e5dedfe842e714da55f784e1c61a2c4c86
tree729961c160a71e756c828556ec45581f181c96c2
parentaadfe180819e0cec3ab07f41a4fbd454d3694ee6
Start caching the result of various bind_attribute_by_data_type invocations

Not only is this a speed win - it also avoids multiple querying of DBD
versions, which can lead to a memory leak (because version.pm is silly).

Still go even further and only check the VERSION of a DBD once unless the
DBD got reloaded.
Changes
lib/DBIx/Class/Storage/DBI.pm
lib/DBIx/Class/Storage/DBI/ADO.pm
lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm
lib/DBIx/Class/Storage/DBI/Pg.pm