Brian Lewis

Results 5 issues of Brian Lewis

`DateType` and `DateTimeType` and subclasses use `datetime.datetime.strptime`, which in turn uses the `dateutil` library. Unfortunately, this library is much slower at ISO8601 date parsing than C-based alternatives (in particular, `ciso8601`):...

documentation
easy fix
perfomance

This commit adds pylint as a required check for the Travis CI build to be successful. It also addresses some of the easy-to-fix recommendations found by pylint. For now, pylint...

Two small performance improvements: - In `convertValue`, if `typeCode` is `STRING` the long `if...elif...else` sequence is short-circuited. - Lists of types (`NUMBER_TYPES`, `INT_TYPES`, etc. are cast to sets for O(1)...

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!

The method `convertValue` of `DefaultDataTypeConverter` contains the following line (L230-L231): ``` logger.trace( "Converting \"%s\" to (%s, %s).", value, dataType, typeCode) ``` This results in many calls to `logger.isEnabledFor`, even when...

enhancement