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

Resolve Path once and for all. #1229

Closed
fulmicoton opened this issue Dec 2, 2021 · 0 comments · Fixed by #1231
Closed

Resolve Path once and for all. #1229

fulmicoton opened this issue Dec 2, 2021 · 0 comments · Fixed by #1231

Comments

@fulmicoton
Copy link
Collaborator

When using a relative path, we end up calling the getcwd syscalls 8 times per commit with the mmapdirectory.
Overall we end up losing ~0.1ms on this.

It is not too terrible but still... It would be nicer to canonicalize our root Path once and for all when we open the directory.

saroh added a commit to saroh/tantivy that referenced this issue Dec 6, 2021
saroh added a commit to saroh/tantivy that referenced this issue Dec 6, 2021
saroh added a commit to saroh/tantivy that referenced this issue Dec 6, 2021
fulmicoton pushed a commit that referenced this issue Dec 9, 2021
* canonicalize path when opening `MmapDirectory`
fixes #1229
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants