Optimize populate(), especially bind handling in complex populate cases
authorPeter Rabbitson <ribasushi@cpan.org>
Sun, 23 Dec 2012 11:45:16 +0000 (12:45 +0100)
committerPeter Rabbitson <ribasushi@cpan.org>
Sat, 12 Jan 2013 13:47:16 +0000 (14:47 +0100)
commit575f4f79ac72ddd90a37935a83ee6a3c3856fe53
tree3977a0da11327ad878406111265e9682b161545d
parent5e2a0518192e45ecdd838468c98c19d169bdc7a7
Optimize populate(), especially bind handling in complex populate cases

Instead of recalculating the data slice positions on every loop, we
do it only once during the "proto bind" generation. This is because
even though all bind values can and will change (even ones supplied
via \[ ... ]), their number will always remain constant.
lib/DBIx/Class/ResultSet.pm
lib/DBIx/Class/Storage/DBI.pm