Uh oh!
There was an error while loading. Please reload this page.
Make LargeFileHelper.php faster by avoiding execs as much as possible - #9490
Conversation
MorrisJobke
commented
May 17, 2018
@marco44 Could you add a |
| if (strpos($os, 'linux') !== false) { | ||
| return $this->exec('stat -c %Y ' . escapeshellarg($fullPath)); | ||
| try { | ||
| $result= filemtime($fullPath); |
There was a problem hiding this comment.
Can you adjust the code style here so we have a space between the variable name and the =?
| try { | ||
| $result= filemtime($fullPath); | ||
| } catch (\Exception $e) { | ||
| $result=-1; |
| return (float) sprintf('%u', $result); | ||
| } | ||
| return $result; | ||
| return $result; |
ca84a16 to
5926218CompareCodecov Report
@@ Coverage Diff @@## master #9490 +/- ##
============================================
- Coverage 51.12% 6.67% -44.46% - Complexity 25724 25726 +2
============================================
Files 1574 1641 +67 Lines 88510 96457 +7947 Branches 0 1393 +1393 ============================================
- Hits 45252 6436 -38816 - Misses 43258 90021 +46763
|
Corrected all your remarks and amended the commit so the signed-off is there |
Signed-off-by: Marc Cousin <cousinmarc@gmail.com>
5926218 to
32fd091CompareMorrisJobke
commented
May 17, 2018
Best to be reviewed in the whitespace cleaned diff: https://github.com/nextcloud/server/pull/9490/files?w=1 |
juliusknorr
commented
May 18, 2018
CI failure seems unrelated |
MorrisJobke
commented
May 18, 2018
Correct. I would still like to have feedback from @icewind1991 on this one. |
MorrisJobke
commented
May 29, 2018
Backport in #9656 @icewind1991 I guess this backport makes sense, right? |
Should fix#8405, as per dissussed in the issue