Slow network read speed

I’ve been having a bit of a problem streaming some of my recent Blu-Ray rips over my powerline network with Kodi. I’m running pretty close to the available bandwidth, but after a bit of maths, I’m pretty sure on average there’s enough bandwidth, and I’ve got a large cache set up in advancedsettings.xml.

So I’ve downloaded and compiled the latest code and found that network read performance (from SMB share) is much better in the latest git version vs. Jarvis, but it was still slower than a Windows file copy.

One thing that has made an impact is changing the read cache chunk size in xbmc/filesystem/FileCache.cpp

I’ve changed that from 64k to 512k:

Code:
#define READ_CACHE_CHUNK_SIZE (512*1024)

For my setup that gives a few more percent in the maximum read speed, which takes the limit for a typical 2 hour Blu-Ray rip that streams smoothly to about 35GB – I think, the largest one I’ve got is 34GB Smile

Not sure what the effect would be on anyone using smaller buffers though (I’ve got mine set at 100MB, because certain stuff affects throughput on my powerline network).