Skip to content

Memtrace v1.2.18

Choose a tag to compare

@Alex793x Alex793x released this 10 Nov 13:02
· 1 commit to main since this release

Memtrace v1.2.18

Save freshness, faster restarts and history reads, and Windows fixes

Improved

  • New and changed symbols can be searched while Memtrace works out callers and other relationships. Save times vary with the size of the project; the first save after startup can take longer while Memtrace prepares its context.
  • After a restart that interrupted embedding, Memtrace keeps the embeddings it already stored instead of rebuilding the search index for each of them. In our tests that step went from 7 seconds to 31 milliseconds per 3,000 symbols.
  • The default memory budget now grows with the machine: a quarter of its memory, where it used to stop at 8 GB. A limit you set with MEMTRACE_MEMORY_BUDGET_MB is still never exceeded.
  • Very large source files now get their call relationships when there is memory to spare. Before, files over about 100,000 syntax nodes were always indexed without them.
  • On Macs with Apple silicon and at least 24 GB of memory, short code passages are embedded with a model shaped for short input, which speeds up embedding.
  • On Macs with Apple silicon, embedding no longer waits for the Core ML model to compile the first time. It starts on the CPU and moves to Core ML once the model is ready.

Fixed

  • A call written before the function it calls now links as soon as that function is saved, even in a file you have not touched since. Removing one of two same-named functions links the calls that could not tell them apart in the same way.
  • A save made while another was still being applied no longer goes unnoticed. An agent asking about it could get the old answer with no warning.
  • Saving while Memtrace starts up no longer sets off a full re-index of the repository.
  • Linking repositories in the background now steps aside for a save instead of holding it up.
  • When Memtrace knows saves are still being applied, its agent answers now say so instead of silently returning an older result.
  • Files in older encodings such as Latin-1 are no longer skipped as binary when an accented letter appears near the top. One such file also made every start re-index the whole repository.
  • Saving a file no longer loses relationships in SQL views, Lua modules or Vue templates, deleting a Swift file no longer leaves its module links behind, and JCL steps keep their identity across saves.
  • A repository with a path too long for Windows no longer rescans its working tree every few seconds.
  • Windows installs with an NVIDIA GPU download their GPU runtime again. Versions 1.2.12 to 1.2.17 had nothing to download, so those installs stayed on CPU. If you installed one of them, run memtrace gpu install-cuda once.
  • Insights no longer shows change hotspots as clear when it has no change history to read. It now says the history is missing.
  • find_import_cycles no longer counts links between Markdown documents as import cycles.
  • While Memtrace reads a repository's history, files that have since moved or been deleted no longer show up as current.
  • An interrupted first read of a repository's history now continues from where it stopped instead of starting over.
  • Reading a large repository's history is much faster: on one 230,000-symbol project each commit went from over a minute to about 7 seconds.
  • Files marked linguist-vendored in .gitattributes are now left out of the index on Windows, as they already were on macOS and Linux.
  • On Windows, a repository inside a folder named fixtures, test or similar no longer loses its gRPC clients and message queues.
  • On Windows, queries from a linked Git worktree no longer fail when Git has converted the line endings of files like .gitignore.
  • Indexing no longer fails before parsing with "source proto control walk is incomplete" in a repository that holds many Git worktrees or very deep folders. It also kept new commits out of the graph. Memtrace now looks for .proto files only in the folders it indexes, so copies under .claude/worktrees/ or in gitignored folders no longer declare duplicate gRPC services.
  • An index that keeps failing no longer retries back to back while other files change. Activity in skipped folders, in Git's own files or on other branches no longer cuts short the wait between attempts.
  • Semantic search keeps its accuracy after Memtrace re-attaches stored embeddings. Re-attaching the wrong one could disconnect part of the search index.
  • A memory limit set with MEMTRACE_MEMORY_BUDGET_MB now stays a hard limit when Memtrace is started by another Memtrace process.
  • Editing files while Memtrace indexes a repository for the first time no longer leaves every later save refused until you run memtrace index again. Memtrace now indexes again once the edits have landed.
  • After a branch is moved back while Memtrace is stopped (for example with git reset --hard), startup no longer marks the embeddings as complete before the code graph has caught up with the branch.
  • A branch created while Memtrace was catching up on commits made while it was stopped now shows up in answers. Before, it could stay unindexed until you switched back to the branch it came from.
  • Node and edge counts in /ui now settle within seconds of indexing. Before, an older count could stay on screen for up to five minutes.
  • The counter under the graph in /ui now shows the repository's full node and edge totals, and how many are visible when a filter hides some. Before, it showed only the visible part.
  • get_symbol_context now answers while Memtrace is embedding instead of waiting for the current batch of embeddings to finish.
  • A save made after Memtrace read a repository's history no longer leaves that branch's graph unfinished, and a graph left unfinished this way is repaired at the next start.
  • After Memtrace stops unexpectedly, for example in a crash or a forced restart, a large repository starts again. Before, rebuilding its index could take longer than the 15 minutes Memtrace waited, so every later start failed the same way. Memtrace now waits as long as the rebuild keeps moving and shows how far it has got.

Install

npm install -g memtrace