diff options
Diffstat (limited to 'src/limits.zig')
| -rw-r--r-- | src/limits.zig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/limits.zig b/src/limits.zig index 75bf5262..ee94a4f6 100644 --- a/src/limits.zig +++ b/src/limits.zig @@ -116,6 +116,16 @@ pub const cwd_buf_cap = if (board) 0 else 1024; /// deepest undo steps and nothing else — no truncation, no dropped edit. pub const undo_max = if (board) 16 else 256; +/// How many message-row lines the session keeps for `Messages`, and one of the +/// bigger fixed costs on `Pardes`: an entry is 262 bytes, so 128 of them is +/// 32.75 KiB that is allocated whether or not anybody ever reads it. That is +/// 8.5% of the board's whole 384 KiB heap and about the size of its effect +/// ring, so the board takes sixteen — enough that a failure you looked away +/// from is still there, which is the whole point, and not enough to matter +/// beside the panes. This belongs here rather than in config.zig for exactly +/// the reason the file's header gives: it is a board-shaped capacity. +pub const message_log = if (board) 16 else 128; + /// Bounds the only user-editable, schema-owned tag fragment. It IS the storage /// bound: `Pane.tag_tail` is `[max_tag_tail]u8`, and every writer (appendTag, /// tagInsert, restoreDumpTail, the acmefs `tag` file) refuses input that does |
