Nomadys-PDF

Files, memory and speed

What goes where#

Inside the PDF. Your highlights, comments, pictures and form entries are kept as standard PDF annotations. Any reader shows them, and nothing is lost if you stop using Nomadys-PDF.

Outside the PDF, Nomadys-PDF keeps these files.

PathContents
~/.config/nomadys-pdf/configyour configuration
~/.config/nomadys-pdf/themes/your own themes (:theme new)
~/.config/nomadys-pdf/math.texyour LaTeX macros for equations in comments
~/.local/share/nomadys-pdf/marks/marks, last page and view of each file (one small file per PDF, keyed by its path)
~/.local/share/nomadys-pdf/recentrecent files (\o)
~/.local/share/nomadys-pdf/sessionthe tabs open now (npdf alone reopens them)
~/.local/share/nomadys-pdf/filesthe list of PDFs found by \f
~/.cache/nomadys-pdf/index2/the text index for \/, \n and :tasks
~/.cache/nomadys-pdf/math/typeset equations
~/.cache/nomadys-pdf/undo/copies kept for undoing page changes, deleted when the PDF closes

The folders follow XDG_CONFIG_HOME, XDG_DATA_HOME and XDG_CACHE_HOME when they are set. Everything under ~/.cache/nomadys-pdf can be deleted at any time, and it is made again when needed. To remove every trace, run this.

make uninstall
rm -rf ~/.config/nomadys-pdf ~/.local/share/nomadys-pdf ~/.cache/nomadys-pdf

Saving#

Memory#

It is made to stay light with big PDFs and many tabs.

With a 255 MB, 26-page paper full of 24-megapixel photos, the program used 93 MB, and about 100–130 MB with eight such papers open in tabs.

Speed#

Robustness#

Every release is tested with AddressSanitizer and UndefinedBehaviorSanitizer on a collection of broken PDFs (truncated, garbage, empty, without pages, with cyclic outlines, huge and tiny pages, 3000 pages, many form fields) and on long random key sequences through every mode. The library index runs in separate processes, so a PDF that crashes the PDF engine only skips that file.