Repository navigation
ArcMD v0.2.4
This patch release fixes unbounded memory accumulation when switching repeatedly across Markdown documents, sidebar hover previews, and Spaces (#33).
Memory and Resource Lifecycle Fixes
- Reclaim closed documents and decoded image bitmaps on switch (
internal/app/app.go,internal/app/document.go,internal/app/opendocs.go,internal/app/split.go,internal/app/windows.go,internal/editor/images.go): Retire closed*documentinstances and evict non-resident entries fromimgResolvedandsearch.liveDocswhenever switching notes, closing split panes or secondary windows, reloading, or unpinning tabs so closed editors and multi-megabyte RGBA*ui.Bitmapbuffers are immediately eligible for garbage collection (#33). - Bounded async image decode concurrency and CPU pixel release (
internal/app/document.go,internal/app/view.go): Cap concurrent background image decoders to 4 goroutines, abort queued or in-flight decodes as soon as a superseded document closes, and callBitmap.ReleasePixels()after GPU texture upload on live windows so uncompressed RGBA/mipmap buffers do not remain duplicated in system RAM (#33). - Bounded sidebar thumbnail LRU cache and scaled preview decoding (
internal/app/preview.go,internal/app/document.go,internal/app/links.go): Boundpreview.thumbsto an 8-entry LRU cache, drop transientopen/...clones when previews close, decode sidebar thumbnail images viaui.DecodeBitmapScaled(data, 640)instead of full-resolution bitmaps, and read[[wiki-link]]hover previews directly from the search index / text extractor without allocating thumbnail editors (#33). - Active Space session slot, whiteboard cache, and modal cleanup (
internal/app/app.go,internal/app/whiteboard.go,internal/app/versions.go,internal/app/gitmerge.go): Clear the active Space's suspendedsession.docreference upon returning to a Space, boundwbCacheto 16 entries, and release retained document/diff state when the Version History, Git Changes, or 3-Way Merge modals close (#33).
Downloads
Packages are available for macOS (Apple Silicon and Intel), Windows x64, and Linux (x64 and ARM64). Verify downloads against SHA256SUMS.txt. Signed update archives and manifests support in-app updates.