About the only time I find myself using regular Wikipedia these days is if I need to know if someone died since August 2025 when this ZIM dump was created.

  • Badabinski@kbin.earth
    link
    fedilink
    arrow-up
    55
    ·
    20 hours ago

    If you want a free and massive performance optimization, remove the cat:

    fastWikiLookup() { grep "$@" ~/wikipedia.txt }
    

    Reading and piping 156 GB of data to another process every time you want to look something up is a somewhat nontrivial action. Grep can directly read the file, which should result in a pretty damn good speed up.