You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, StenciledFile and other locations use locks to avoid race conditions between seek and read calls. I'm not sure why I never though ot pread before but it might improve performance for multi-threaded access and even if not, it should simplify the code by removing the lock.
The text was updated successfully, but these errors were encountered:
One reason why os.pread is not always possible is the recursion. In those cases the reading has to be done on pure Python file-like objects for which pread cannot be used. But, it should still be possible to implement as a fast-path for real files.
Currently, StenciledFile and other locations use locks to avoid race conditions between seek and read calls. I'm not sure why I never though ot
pread
before but it might improve performance for multi-threaded access and even if not, it should simplify the code by removing the lock.The text was updated successfully, but these errors were encountered: