owncloud-archive / files_locking

3 stars 5 forks source link

dont sleep before we even try to get a read lock #13

Closed icewind1991 closed 9 years ago

icewind1991 commented 9 years ago

No need to waste 50ms for every read operation....

Fixes https://github.com/owncloud/core/issues/14107

LukasReschke commented 9 years ago

Works :+1:

Test script goes down from 5.4436509609222 sec to 0.27690482139587 sec

PVince81 commented 9 years ago

Right, nice catch :+1:

PVince81 commented 9 years ago

We should probably backport this to OC 8 @karlitschek ?

karlitschek commented 9 years ago

yes. please backport :+1:

PVince81 commented 9 years ago

stable8: https://github.com/owncloud/files_locking/pull/16