Commit Graph
1 Commits
Author SHA1 Message Date
Simon Rettberg 5b0a136542 FileResourceHandler: Open file once on init, more error handling
Keeping the file open allows better prefetching/caching on both
the application layer (ifstream) and OS level (vfs layer) as
the access pattern is sequential and predictable. We also save
three syscalls (open, seek, close) for every chunk we send to
the client (256kb).
2025-06-02 12:15:28 +02:00