Skip to content

Memtrace v1.2.16

Choose a tag to compare

@Alex793x Alex793x released this 04 Nov 08:12
· 2 commits to main since this release

Memtrace v1.2.16

Folders without git just work, upgrades on Windows, and a smooth graph

Improved

  • On one 230,000-symbol project, embedding went from over an hour to under 25 minutes with the same search results. Supported GPU requests sort batches across a whole page to reduce padding, and saving vectors takes less time.
  • Indexing a large repository is about a third faster. One step compared every symbol against every other symbol, which took minutes on large projects; it now takes moments.

Changed

  • memtrace start and memtrace index in a folder without git now index it as plain files straight away, instead of stopping with "No git repository found - nothing to index here" until you passed --allow-non-git. Every save still lands on the folder's timeline; only git history, which the folder does not have, is skipped. Your home folder, a drive root and system folders are never indexed this way, and MEMTRACE_ALLOW_NON_GIT=0 turns it off.
  • The first start on a git repository now reads the last 14 days of history, up to 200 commits, instead of 30 days and 500 commits, so very busy repositories are no longer busy for hours. Later starts read only new commits. You can widen either limit in Settings.

Fixed

  • Memtrace uses the memory your work needs when the machine has it, instead of stalling under a fixed limit. Since 1.2.12 it kept itself to a quarter of RAM, at most 8 GB, with 2 GB of that for its own process on a 64 GB machine. Applying a save to a 30,000-node project needs about 700 MB more than that left, so saves were retried in the background and never applied, even with 40 GB free; other large steps waited the same way. That budget is now a floor: Memtrace may also use spare memory, normally leaving a quarter of RAM (at least 4 GB) free for other programs. On macOS, a watcher can temporarily use part of that reserve while memory pressure is normal; new lending stops when pressure rises. Its safety stop is again at 75% of RAM rather than at the budget. A limit you set yourself with --memory-limit-mb or MEMTRACE_MEMORY_BUDGET_MB stays exactly as strict as before.
  • Upgrading from the update prompt no longer fails on Windows with "'node' is not recognized". On a machine whose PATH had grown long with folders that no longer exist, the folders npm adds before running the install pushed it past the length Windows' command prompt accepts. The upgrade now hands npm only the folders that exist, once each. Your installed version was never affected: a failed upgrade kept it.
  • The graph appears as soon as indexing writes it, and as soon as the index finishes, instead of after a long wait on an empty canvas. The view refused the picture the index itself had just drawn until a later pass rebuilt the whole graph from the store, which took about 40 seconds after a 30,000-node index finished and left the canvas empty for the whole index before that. The graph now shows while indexing finishes and updates in place as it settles, with no waiting message over a graph you can already see. Saving a file no longer blanks the graph for several seconds either: the graph you had stays on screen until the update replaces it.
  • Embedding no longer stalls for minutes while Insights or the graph view are being computed, and they no longer wait for it. Every batch of embedding held the lock those share, including on an NVIDIA GPU where it was not needed, and while it waited to save; one page of a 16,000-symbol run stalled for about three minutes behind an Insights calculation, and the progress line read 2.7 symbols per second. Embedding on the GPU now runs alongside them, and on the CPU it holds the lock only while it computes.
  • Dragging and zooming the graph follow the pointer again. A pan only moved the view once the next layout step had finished, and every frame of a pan re-checked all of a large graph's edges against the screen, so on a 30,000-node graph with the graphics card busy (for example embedding code during an index) the view trailed the mouse. Pans and zooms now draw straight away; during a drag every edge is drawn without that check, which runs once when you let go.
  • The index progress line keeps moving through the linking stage. On large repositories it used to sit at 25% for minutes while the work carried on out of sight.

Install

npm install -g memtrace