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

Improve speed of serving unreadable files #14605

Merged
merged 1 commit into from Jul 5, 2019
Merged

Improve speed of serving unreadable files #14605

merged 1 commit into from Jul 5, 2019

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Jul 1, 2019

While looking for long running Integration tests (#12691) I saw, that the test Piwik\Tests\Integration\ServeStaticFileTest:test_nonReadableFile takes around 65s on travis, as reading the file without permission seems to take a long time.
Adding a check for is_readable speeds up the test to less than 10 seconds (guess even less, but I used 10 seconds for reporting slow tests).

Not sure if that might decrease the speed for existing files as there is another file operation to be done...

@tsteur
Copy link
Member

tsteur commented Jul 3, 2019

Feel free to merge if it increases the speed 👍

@tsteur tsteur merged commit 7147fc3 into 3.x-dev Jul 5, 2019
@tsteur tsteur deleted the improvespeed branch July 5, 2019 13:33
@mattab mattab added the c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. label Jul 23, 2019
@mattab mattab changed the title Try to improve speed of serving unreadable files Improve speed of serving unreadable files Jul 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Tests & QA For issues related to automated tests or making it easier to QA & test issues.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants