jameslittle230 / stork

🔎 Impossibly fast web search, made for static sites.
https://stork-search.net
Apache License 2.0
2.73k stars 56 forks source link

Optimize index size if excerpts_per_result is 0 #284

Closed jameslittle230 closed 2 years ago

jameslittle230 commented 2 years ago

Closes #282

SCR-20220424-j76

github-actions[bot] commented 2 years ago

Benchmarks

BenchmarkBaselineContenderComparison
build/federalist217.9713217.1331.0×
federalist.st1125.4561125.4561.0×
search/federalist/liberty1.94542.03661.05×
stork.js21.96122.0821.01×
stork.wasm351.162351.3421.0×

Baseline: a93f33f3caab84d559197c2727e08409ab427023; Comparison: 53b241d07423e3f152ec8cd53075c693963c01ab

codecov[bot] commented 2 years ago

Codecov Report

Merging #284 (53b241d) into master (eeaca67) will increase coverage by 0.53%. The diff coverage is 76.59%.

@@            Coverage Diff             @@
##           master     #284      +/-   ##
==========================================
+ Coverage   72.44%   72.98%   +0.53%     
==========================================
  Files          53       52       -1     
  Lines        2174     2221      +47     
  Branches      104      107       +3     
==========================================
+ Hits         1575     1621      +46     
- Misses        598      599       +1     
  Partials        1        1              
Impacted Files Coverage Δ
stork-cli/src/clap.rs 100.00% <ø> (ø)
stork-cli/src/main.rs 0.00% <0.00%> (ø)
stork-lib/src/index_v3/build/fill_stems.rs 100.00% <ø> (ø)
...index_v3/search/entry_and_intermediate_excerpts.rs 76.59% <ø> (-0.96%) :arrow_down:
stork-lib/src/index_v3/search/mod.rs 78.65% <27.27%> (-17.13%) :arrow_down:
stork-lib/src/index_v3/build/errors.rs 80.95% <50.00%> (+0.46%) :arrow_up:
...rc/index_v3/build/fill_intermediate_entries/mod.rs 90.99% <75.00%> (+0.99%) :arrow_up:
stork-lib/src/index_v3/build/mod.rs 97.72% <91.30%> (-0.85%) :arrow_down:
js/config.ts 82.35% <100.00%> (+1.10%) :arrow_up:
js/entity.ts 65.45% <100.00%> (ø)
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a93f33f...53b241d. Read the comment docs.