Open qwwdfsad opened 6 years ago
Caching of file data is planned, we need to adopt something like https://github.com/ben-manes/caffeine for the best multithreading throughput and async cache fills.
This issue has been automatically marked as stale because it has not had recent activity.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
On simple static workload
caching result of
file.isFile
invocation saves up to 30% of throughput (depending on file size). For static content it can be cached either forever or in timely manner (e.g. via Guava'sSuppliers#memoizeWithExpiration
). The rest of attributes (byte content or last modified time required forLocalFileContent#<init>
) can probably be cached as well