Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit bundles a number of smaller optimisations in the CSV parser and import code. They do add up to a noticible speed gain though (at least on some systems and configurations).
- Loading branch information
1 parent
6ed8080
commit 0eb1f65
Showing
5 changed files
with
93 additions
and
90 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
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.
0eb1f65
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit is worth benchmarking, too 😄 As far as I can see, we've reduced the import time from 3 minutes in DB4S 3.9.1 to around 2 minutes with the memory consumption patch. With any luck this should help reducing it even more.
0eb1f65
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries. I'll get to this pretty soon. Just finished the ToDo list item I was working on, so good timing. 😄
0eb1f65
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to hurry though - I'm taking the rest of the day off anyway 😄
0eb1f65
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. This has knocked another 20 seconds off the import time for the UK postcode CSV file. 😄
Interestingly, the Trim fields option seems to be noticeable now (~1 sec difference).
With
Trim fields
enabled:With
Trim fields
disabled: