aboutsummaryrefslogtreecommitdiffhomepage
path: root/TOOLS/dylib-unhell.py
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2017-10-20 22:13:22 +0200
committerGravatar wm4 <wm4@nowhere>2017-10-20 22:13:22 +0200
commit7163c95cfd1a74e47c24a2f21b33124520a5e7f1 (patch)
tree9d961a51a5124d350e2430df7bc24908bf07b9bf /TOOLS/dylib-unhell.py
parent13fb166d8700630c7126584a9cb240f0c1a578f2 (diff)
cache: throttle wakeups
In the extreme case, reading 1 byte would wake up the cache to make the cache thread read 1 byte. This would be extremely inefficient. This will not normally happen in our cache implementation, but it's still present to some lesser degree. Normally you'd set a predefined "cache too low" boundary, after which you would restart reading. For some reason something like this is already present using a hardcoded value (FILL_LIMIT - I don't even know the deeper reason why this exists). So use that to reduce wakeups. This doesn't fix redundant wakeups on EOFs, which is especially visible should something keep retrying reading on EOF (like in an endless loop).
Diffstat (limited to 'TOOLS/dylib-unhell.py')
0 files changed, 0 insertions, 0 deletions