Repository navigation
Large Files
fedro86 edited this page Oct 20, 2026
·
4 revisions
FerrisPad handles large files with configurable thresholds and multiple viewing options. Tested with log files up to 2 GB.
Configure both thresholds in File > Settings:
| Threshold | Default | Behavior |
|---|---|---|
| Warning | 50 MB | Shows a confirmation dialog before opening |
| Max Editable | 150 MB | Opens a dialog with alternative viewing options (see below) |
Both thresholds are fully configurable. If you set the warning threshold equal to or higher than the max editable threshold, the warning tier is effectively skipped.
When a file exceeds the max editable threshold, FerrisPad shows a dialog with three options:
| Option | Description |
|---|---|
| View Read-Only | Browse the entire file without editing. The file is streamed into a read-only viewer with a progress bar. An Open (editable) button lets you open the currently visible page as an editable chunk. |
| Open Tail | Load the last 10,000 lines of the file in an editable buffer. Useful for log files. Edits are saved back to the correct position in the original file. |
| Open Lines | Specify a start and end line number to open a specific range of the file in an editable buffer. Edits are saved back to the correct position in the original file. |
You can also cancel to skip opening the file entirely.
- Streamed loading — large files are loaded in 1 MB chunks with a progress bar, keeping memory usage at ~1x file size instead of ~2x
- Cancellable — press Cancel in the "Loading File" progress dialog to stop loading at any time
- Chunked syntax highlighting — large files are highlighted in 2,000-line chunks via the FLTK event loop, keeping the UI responsive
- Sparse checkpoints — highlighting state is stored every 128 lines (not per-line), reducing memory usage
- Non-blocking — highlighting never freezes the editor; it yields between chunks