Repository navigation
lfc-pack tests: slim memory-compression check prints its own summary - #997
Merged
Merged
Conversation
…or for old files Pages of 65,536 values, encodings chosen on a sample, shared word lists (sorted and front-coded when smaller), links between columns (chains and two-column links), old files sent to the format-1 reader. Co-Authored-By: Claude <noreply@anthropic.com>
…start head with exact types and facts Co-Authored-By: Claude <noreply@anthropic.com>
…r and reader Co-Authored-By: Claude <noreply@anthropic.com>
…o, Codex handoff Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
…% and 2 KB; memory-compression needs a 5% margin Co-Authored-By: Claude <noreply@anthropic.com>
…irs); link-source codes kept beside the arrays on read Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
…rce codes Co-Authored-By: Claude <noreply@anthropic.com>
…ead-all 0.73-0.93 of before on e-commerce) Co-Authored-By: Claude <noreply@anthropic.com>
…lf the time) Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
…es, appends re-packed columns, new index and head, counts dead bytes; compact repack Co-Authored-By: Claude <noreply@anthropic.com>
…ugh unpatched values); re-pack past 5% of rows Co-Authored-By: Claude <noreply@anthropic.com>
…ks sorted by source; edits and repacks keep parts Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
…ted text columns drop the words-sorted flag Co-Authored-By: Claude <noreply@anthropic.com>
…nks from their sources' first rows) Co-Authored-By: Claude <noreply@anthropic.com>
- Start head is 24 bytes plus body plus empty room; data starts after the room. - Edit saves rewrite the head in place at the start (or move every piece once when it outgrows the room); no head copy at the end of the file any more. - Parts directory (extra tables, documents, files) is in the start head. - Streams: declared column types in the start head, a facts header at the front of each page group, and finalHead() with the whole stream's facts. - Word lists restart their shared-start chain every 1,024 words (someWords/codesIn read a few without decoding all). Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
…ll 17% faster) Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
…33% faster) The main thread finds the words of text columns with repeats (Map on the original strings, whose hashes the engine already has) and sends only typed arrays; helpers used to hash every value again. Mostly-distinct columns keep the byte path. Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
…ole columns) Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KpxKcXFm1eYVfMfeZ8kzG7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KpxKcXFm1eYVfMfeZ8kzG7
packColumnsParallel writes format 2 (start-head metadata, word lists, column links, edit-in-place saves, streams) through the new LfcPack.tables API. JSON rows and the format 1 extras keep format 1 until 1.1. unpackColumns, unpackColumnsParallel and unpackRows read both formats. Folds in the 0.27.3 M-encoding fallback (PR 976). zstd-kit 1.1.0 adds decompressInto. Requested by the owner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KpxKcXFm1eYVfMfeZ8kzG7
…ays save as numbers packColumnsParallel validates columns as before (colTable), keeps text-bytes, dictionary and timestamp holders on format 1, and copies Int32Array and other typed number arrays to Float64Array for format 2. b34 and packblockcols check format 1 behavior, so they pass format: 1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KpxKcXFm1eYVfMfeZ8kzG7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KpxKcXFm1eYVfMfeZ8kzG7
- lfc-pack vs Parquet tester: date columns go in as numbers, so every lfc-pack file it makes is format 2; wording says so - viewer: opens format 2 tables and streams (column facts from the start head, first rows only) - tests/lfc-pack-v2-browser.js: save, read, readRows, edit, stream, parts and refusals in one browser Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KpxKcXFm1eYVfMfeZ8kzG7
…foundry/JS-modules into claude/project-thread-lykxid # Conflicts: # modules/lfc-pack/CODEX-2026.11.30.md
- python/lfc_pack.py: read_table, table_head, read_parts; read, read_text, info and metadata take format 2 files - go-reader/v2.go: lfcp-read head, exact, parts; rows, text and info take format 2 files; web build refreshed - both read every format 2 encoding, links, edits, streams and parts; number pages in memory-compression 2.x blocks are refused with a plain message until Thursday (owner's choice) - test/v2/vectors.cjs makes format 2 files fresh for both readers (run.js steps; go-reader/check_v2.py) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KpxKcXFm1eYVfMfeZ8kzG7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KpxKcXFm1eYVfMfeZ8kzG7
In the idle repack (pairs: true, or templates: true), a text column built from other text columns plus fixed text is stored as a few patterns and one small code per row. SBA awards 33% smaller; held-out SEC submissions 18% and SBA late awards 30% smaller. Reads even with 1.0.1 in 3 browsers; default Save unchanged. Files with templates set format minor 1; JS, Python and Go readers read them, 1.0.x refuses them with a plain message. Requested by the owner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KpxKcXFm1eYVfMfeZ8kzG7
…foundry/JS-modules into claude/project-thread-lykxid
…y number column - A column that follows another stays linked when the first row of a group is an odd one (each group's most common value is tried when the first row breaks the 1% limit); links are committed by estimated saving. E-commerce with 100 copied cells: 483,675 to 339,326 bytes. Default Save even with 1.1.0. - Python and Go readers decode memory-compression 2.x number blocks, checked bit for bit on 19 more picker columns. - No NUL byte in lfc-pack.js, lfc-pack-read.js and viewer.html. Requested by the owner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KpxKcXFm1eYVfMfeZ8kzG7
…foundry/JS-modules into claude/project-thread-lykxid
Format 2 code and memory-compression are now made on first use, and format 1 helper workers skip them, so helper set-up is back to 0.27 levels in three browsers. Same bytes as 1.2.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KpxKcXFm1eYVfMfeZ8kzG7
Workers that load lfc-pack.js and call init() no longer compile format 2's WebAssembly; it gets ready on first use (sync calls compile Zstandard at once). Same bytes, no API change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KpxKcXFm1eYVfMfeZ8kzG7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KpxKcXFm1eYVfMfeZ8kzG7
lfc-pack.js 1.88 MB to 1.45 MB: the memory-compression copy is now its packing core, number picker and helpers plus a small wrapper, with the same bytes (checked against the full module in test/v2/mcslim.test.js). Workers start 4 to 12 ms faster. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KpxKcXFm1eYVfMfeZ8kzG7
Owner's choice: the idle repack (pairs: true) writes level 9 frames, files 3 to 9% smaller on six tables, repack 1.3 to 1.7 times longer, reads even. The repack also tries links priced up to 25% over a column's size. Default Save unchanged. Version labels brought in line everywhere. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KpxKcXFm1eYVfMfeZ8kzG7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KpxKcXFm1eYVfMfeZ8kzG7
Owner's choice: a second build without format 2 (no LfcPack.tables, no memory-compression copy), 1.0 MB instead of 1.45 MB, loading 8 to 10 ms faster per fresh worker. Same format 1 bytes; format 2 files are refused with a plain message. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KpxKcXFm1eYVfMfeZ8kzG7
The CI job fails on any output line with "skipped"; node:test's summary
("# skipped 0") tripped it after 1.3.0. The check now runs as a plain script.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KpxKcXFm1eYVfMfeZ8kzG7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by the owner · project thread
What
This fixes the red
lfc-pack-testscheck on main after #996. The lfc-pack CI job fails on any output line containing "skipped". The new slim memory-compression check ran under node:test, and its summary prints# skipped 0. The check now runs as a plain script and prints its own summary. Its assertions are unchanged. This is a test-only change, so there is no version bump.Generated by Claude Code