custom adapters doc file (incomplete)

This commit is contained in:
phiresky 2020-06-09 22:45:42 +02:00
parent 8070a94d84
commit 05e1822299
2 changed files with 13 additions and 1 deletions

9
doc/Custom adapters.md Normal file
View File

@ -0,0 +1,9 @@
## Custom adapters
Since [version], you can specify custom adapters that invoke external preprocessing scripts in the config file.
[Todo: how]
[Todo: why not just use --pre yourself (copy/see https://github.com/phiresky/ripgrep-all/issues/60)]
If you think your adapter config is useful, you can share it by opening an issue with the title: "Custom adapter: xyz"

View File

@ -94,7 +94,10 @@ impl PreprocCache for LmdbCache {
match cached {
Some(rkv::Value::Blob(cached)) => {
debug!("cache HIT, reading from cache");
debug!(
"cache HIT, reading {} (compressed) from cache",
print_bytes(cached.len() as f64)
);
debug!("reading from cache took {}", print_dur(start));
callback(cached)?;
}