TheThe0.5.0
The/Large files

A gigabyte file is not a “please wait”.

An ordinary editor reads the whole file into memory and hopes it fits. The memory-maps the original and states plainly which mode it is in and what that mode switches off.

mechanics

Three decisions that add up to speed.

mmap

The original is mapped, not copied

Files from 100 MB open through memory-mapping: pages are faulted in on access, so opening costs almost no RAM and requires no full read from disk.

index

Line indexing runs in the background

Jumping to a line and the cursor position are instant while the interface never blocks on counting: the index is built in parallel and its status is visible in the status bar.

piece table

Editing anywhere is equally cheap

The buffer is assembled from pieces rather than rewritten: inserting at the start of a several-hundred-megabyte file costs the same as at the end. Undo is snapshot-based.

modes

The editor says what it turned off instead of stalling.

The mode is chosen by file size and shown in the status bar. This is the key difference from “sudden slowdowns”: behaviour is predictable and the limits are named out loud.

mode 01

Normal

Ordinary files. Everything on: highlighting, folding, project-wide search, git markers, language intelligence.

threshold
< 16 MiB
opening
plain read
limits
none

mode 02

LargeText

Big logs and dumps. The file is memory-mapped and heavy whole-file passes are constrained.

threshold
16 MiB — 1 GiB
opening
mmap + background index
limits
some whole-file passes

mode 03

HugeSlice

Gigabyte files. Work proceeds in slices: the editor deliberately disables anything that needs to walk the whole content.

threshold
≥ 1 GiB
opening
mmap, slice reads
limits
maximal, stated explicitly

placeholder

The exact switching thresholds and the list of features disabled in each mode must be confirmed against the 0.4.3 source before publication. The values above are a guide taken from project documentation, not a measurement.

data

A million-line log is easier to read as a table.

CSV and TSV table mode

  • Rainbow columns — the eye does not lose a column while scrolling.
  • The header stays pinned, line numbers are large.
  • Works on multi-million-row tables: the same mmap and background index.
  • Project-wide search on RE2 — results grouped by file.
All formats

one more thing

A big file is especially easy to ruin.

So saving is atomic: a crash or a power cut during a write will not leave a torn file. An open file is locked across processes, and if it changed on disk the editor tells you instead of silently overwriting it.