Subject: | Fine tune unicode support |
Currently DBD::SQLite sets the utf8 flag to true for every string when $dbh->{'unicode'} = 1. This slows down Perl on ASCII-only strings.
In the attached file I've added a function "sqlite3_high_bit_set" (which is taken from DBD::Pg) which checks whether the string is ascii or utf8.
And if $dbh->{unicode} = 1 and the string contains high-bit chars, only then the utf8 flag is set to true.
I hope this will make it in the next version of DBD::SQLite.
P.S. the attached file is taken from DBD-SQLite-1.11 package
Message body is not shown because it is too large.