Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db_unixodbc: fix query result handling and improve performance
Until now, query rows were incrementally stored in a list with separately allocated length and string buffers, along with a great deal of useless pointer dereferencing, effectively wasting CPU cycles and pkg mem usage. This patch eliminates the linked list logic with a global buffer of pointers (doubling in size when required) meant to hold each result column. Each column is transparently freed by the DB backend. This completes commit d63ee19. (cherry picked from commit 683dfaa)
- Loading branch information
1 parent
fb13b39
commit e0c1fea
Showing
9 changed files
with
100 additions
and
248 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.