Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(BaseGrammar): Avoid isInstanceOf in wrapColumn
`isInstanceOf` takes about 30-40 ms per column. For just one table with 6 columns, this is close to a quarter of a second. This adds up. Instead, just checking if the variable is an object that has a `getSQL` key (which we assume is a method), we save all of that time.
- Loading branch information