PyTd icon indicating copy to clipboard operation
PyTd copied to clipboard

Improve performance of _getRow and fetchall

Open tetraptych opened this issue 8 years ago • 1 comments

Performance improvements included in this PR:

  • Store ctypes.sizeof(SQLWCHAR) once rather than re-calculating on each value conversion
  • Return list(self) in fetchall instead of using a for loop

Cheers!

tetraptych avatar Nov 14 '17 18:11 tetraptych

This is causing 23 unit test failures, I'll need to investigate why.

escheie avatar Nov 16 '17 00:11 escheie