-
-
Notifications
You must be signed in to change notification settings - Fork 820
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved performance by fetching column names once
refs ad569c0 - this commit optimizes the library by only fetching column names once whilst preparing the data to return - we save a lot of calls to the sqlite3 lib and this improves `.each` and `.all`, which would ordinarily do this once per row - `benchmark/select.js` statistics go from `db.each: 92.393ms, db.all: 101.076ms` to `db.each: 83.254ms, db.all: 93.211ms`, which is a ~9-10% improvement
- Loading branch information
1 parent
216e935
commit 5063367
Showing
3 changed files
with
38 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters