mikemccand commented on issue #13551:
URL: https://github.com/apache/lucene/issues/13551#issuecomment-2444797398
> ...but later realized that this would not work for compound files that
have vector data in them eg `.cfs`?
Tracing `MMapDirectory.openInput` in `main`, it does this:
```
return PROVIDER.openInput(
path,
context,
chunkSizePower,
preload.test(name, context),
groupingFunction.apply(name),
attachment);
```
So it looks like it applies the `preload` predicate to the `.cfs` named
file... and then passes the resulting `boolean` to the JDK-version-specific
impl. Opening further slices within this `IndexInput` (what CFS filels do) no
longer do any preloading, since the whole `.cfs` file was either preloaded or
not.
@gautamworah96 -- maybe open a spinoff issue exploring whether we could
offer preloading of just slices within a CFS file?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]