Skip to content

make parsing in prepareName for point_hint faster - #1718

Merged
karussell merged 6 commits into
masterfrom
faster_point_hint_parsing
Sep 10, 2019
Merged

karussell merged 6 commits into
masterfrom
faster_point_hint_parsing

Conversation

@karussell

Copy link
Copy Markdown
Member

Improves #1717

@karussell karussell added the bug label Sep 9, 2019
@karussell karussell added this to the 0.13 milestone Sep 9, 2019
list.add(rewrite);
String token = name.substring(lastMatch, i);
lastMatch = i + 1;
// end string.split

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will eventually revert this split complexity as it seems it does not improve speed.

@karussell

karussell commented Sep 9, 2019 •

Copy link
Copy Markdown
Member Author

Just some stats for running Measurement on "Sachsen" with default and car:

maximum number of prepareName calls: 4400 and average calls: 190

So it makes sense that the cache helps :)

Update: have decided to remove the cache due to memory footprint and cache complexity. If we still have perf problems in this area we can revisit this.

@otbutz otbutz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd argue for a rebase :)

@karussell

karussell commented Sep 9, 2019 •

Copy link
Copy Markdown
Member Author

I usually just squash and merge. This way the history stays in the pull request (like all the comments) but potential ugliness like "remove tmp.tsv" stays out of master :)

@karussell
karussell merged commit bcebb7d into master Sep 10, 2019
@karussell
karussell deleted the faster_point_hint_parsing branch September 10, 2019 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants