Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISSUE-190: Fix duplicate results for overlapping patterns due to a leading dot #402

Merged
merged 1 commit into from
May 27, 2023

Conversation

mrmlnc
Copy link
Owner

@mrmlnc mrmlnc commented May 24, 2023

What is the purpose of this pull request?

This is a partial fix for #190. This pull request fix duplicate results for overlapping patterns due to a leading dot, as mentioned in #190 (comment).

What changes did you make? (Give an overview)

Do not use path.normalize because it is an expensive function in terms of execution time. For 10_000 entries - 3ms; 100_000 – 10ms; 1_000_000 – 80ms.

// utils.path.removeLeadingDotSegment
fg: 352.983ms
183249

// path.normalize
fg: 493.967ms
183249

Uh, oh.

If there are issues on this topic, it will be necessary to consider the possibility of normalizing patterns at the task creation stage.

@mrmlnc mrmlnc changed the title ISSUE-190: q ISSUE-190: Fix duplicate results for overlapping patterns due to a leading dot May 24, 2023
@mrmlnc mrmlnc force-pushed the ISSUE-190_duplicates branch from c8b0361 to 18aefc1 Compare May 27, 2023 10:42
@mrmlnc mrmlnc added this to the 3.3.0 milestone May 27, 2023
@mrmlnc mrmlnc marked this pull request as ready for review May 27, 2023 11:06
@mrmlnc mrmlnc merged commit 6bfb5f4 into master May 27, 2023
@mrmlnc mrmlnc deleted the ISSUE-190_duplicates branch May 27, 2023 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant