summaryrefslogtreecommitdiff
path: root/app/main.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-25 17:10:23 -0300
committerGabriel Schneider <[email protected]>2026-09-25 17:52:33 -0300
commit73602127d15d10a1932b6fe916bd18a608054980 (patch)
tree0165c9a3638ea5c2031cad1189a9cd5e89a2dd77 /app/main.zig
parentdf20863879fe2d83077534f4726a985ffc239def (diff)
downloadcloud9-73602127d15d10a1932b6fe916bd18a608054980.tar.gz
cloud9-73602127d15d10a1932b6fe916bd18a608054980.zip
fs, serve: set an engine up in place, so a large fid table costs only the fids used
A kernel mount (9ns) holds a fid for every inode the kernel caches, so a server that wants `ls -l` of a directory of thousands of files to work needs a fid table of tens of thousands. Server.initIn sets an engine up in place and, with fid_index, never writes a fid slot at or past high_water; the walks over the table (references, reset, orphan) stop there. Runner.init sets each connection's small fields one by one and leaves the engine to start(), so connection slots nobody uses are never written. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Diffstat (limited to 'app/main.zig')
0 files changed, 0 insertions, 0 deletions