@andrebuzeli/advanced-memory-markdown-mcp
Version:
Advanced Memory Bank MCP v3.1.5 - Sistema avançado de gerenciamento de memória com isolamento de projetos por IDE, sincronização sob demanda, backup a cada 30min, apenas arquivos .md principais sincronizados, pasta reasoning temporária com limpeza automát
60 lines • 2.02 kB
TypeScript
/**
* Performance Optimizer - Advanced performance optimizations
* Implements async operations, streaming, and caching strategies
*/
export interface PerformanceMetrics {
operationTime: number;
memoryUsage: number;
cacheHitRate: number;
concurrentOperations: number;
}
export declare class PerformanceOptimizer {
private readonly version;
private readonly cache;
private readonly batchQueue;
private readonly batchTimeouts;
private readonly concurrentOperations;
private readonly metrics;
constructor();
/**
* Execute operations in parallel with controlled concurrency
*/
executeParallel<T>(operations: (() => Promise<T>)[], maxConcurrency?: number): Promise<T[]>;
/**
* Batch operations with automatic flushing
*/
batchOperation<T>(key: string, operation: T, batchProcessor: (batch: T[]) => Promise<void>, batchSize?: number, flushTimeout?: number): Promise<void>;
/**
* Stream large file operations
*/
streamFileOperation(inputPath: string, outputPath: string, transformer: (chunk: string) => string): Promise<void>;
/**
* Lazy loading with caching
*/
lazyLoad<T>(key: string, loader: () => Promise<T>, useCache?: boolean): Promise<T>;
/**
* Memory-efficient data processing with streaming
*/
processLargeDataset<T, R>(data: T[], processor: (item: T) => Promise<R>, chunkSize?: number): Promise<R[]>;
/**
* Debounced operations to prevent excessive calls
*/
debounce<T extends (...args: any[]) => any>(func: T, delay: number): (...args: Parameters<T>) => Promise<ReturnType<T>>;
/**
* Get current performance metrics
*/
getMetrics(): PerformanceMetrics;
/**
* Clear all caches and reset state
*/
clearCache(): void;
/**
* Flush a specific batch
*/
private flushBatch;
/**
* Update cache hit rate metrics
*/
private updateCacheHitRate;
}
//# sourceMappingURL=performance-optimizer.d.ts.map