mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-10 03:28:14 +00:00
fix merge conflicts
This commit is contained in:
commit
3b504e1c9f
3 changed files with 17 additions and 2 deletions
|
|
@ -80,4 +80,19 @@ NodeCache now cleans up deleted nodes properly
|
|||
#### Race Condition Fix
|
||||
Atomic node/edge updates eliminate NaN positions
|
||||
|
||||
#### Canvas Rendering Optimizations
|
||||
Reduced per-frame overhead and improved rendering efficiency
|
||||
- Spatial grid for hit detection
|
||||
- Batched edge rendering by type (fewer canvas state changes)
|
||||
- Canvas quality settings initialized once instead of every frame
|
||||
- Optimized render key using fast hash instead of string concatenation
|
||||
- Memoized nodeMap to avoid rebuilding every frame
|
||||
|
||||
#### Node Limiting & Memory Management
|
||||
Smart memory limiting prevents performance issues with large datasets
|
||||
- `maxNodes` prop limits total memory nodes (default: 500 in playground)
|
||||
- Dynamic per-document cap distributes budget across documents
|
||||
- Prioritizes recent memories and high-relevance scores
|
||||
- k-NN similarity limit reduced from 15 to 10 connections per document
|
||||
|
||||
---
|
||||
|
|
@ -39,8 +39,8 @@ export const MemoryGraph = ({
|
|||
selectedSpace: externalSelectedSpace,
|
||||
onSpaceChange: externalOnSpaceChange,
|
||||
memoryLimit,
|
||||
isExperimental,
|
||||
maxNodes,
|
||||
isExperimental,
|
||||
// Slideshow control
|
||||
isSlideshowActive = false,
|
||||
onSlideshowNodeChange,
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ export const LAYOUT_CONSTANTS = {
|
|||
// Similarity calculation configuration
|
||||
export const SIMILARITY_CONFIG = {
|
||||
threshold: 0.725, // Minimum similarity (72.5%) to create edge
|
||||
maxComparisonsPerDoc: 10, // k-NN: each doc compares with 15 neighbors (balanced performance)
|
||||
maxComparisonsPerDoc: 10, // k-NN: each doc compares with 10 neighbors (optimized for performance)
|
||||
}
|
||||
|
||||
// D3-Force simulation configuration
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue