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

Update file_stream.c (It causes slow "Scan directory" option on Linux) #6250

Closed
wants to merge 1 commit into from

Conversation

lodgerz
Copy link

@lodgerz lodgerz commented Feb 7, 2018

It causes slow "Scan directory" option on Linux. The problem starts from this commit:
72fdfb1

It causes slow "Scan directory" option on Linux.
@lodgerz lodgerz changed the title Update file_stream.c Update file_stream.c (It causes slow "Scan directory" option on Linux) Feb 7, 2018
@inactive123
Copy link
Contributor

@bparker06 I wonder what could be the actual underlying cause for this? Maybe the HAVE_MMAP codepath is just very slow and maybe we should get rid of it?

@ghost
Copy link

ghost commented Feb 13, 2018

I can confirm that just removing HAVE_MMAP greatly speeds up the scanning.

@inactive123
Copy link
Contributor

inactive123 commented Feb 13, 2018

@lodgerz

71b423c

Let me know if this gives you the same speedup as this PR here. It did for @bparker06 at least.

@lodgerz
Copy link
Author

lodgerz commented Feb 13, 2018

@twinaphex yes, with last commit scan directory is fast. Good Job!

@inactive123
Copy link
Contributor

OK, I will close this PR then.

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.

None yet

2 participants