MCPcopy Create free account
hub / github.com/codeaashu/claude-code / _batchedMemoryCleanup

Method _batchedMemoryCleanup

src/server/web/public/terminal.js:3931–3937  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3929 this._cols = e3, this._rows = t3, this._memoryCleanupQueue.clear(), s3 > 0.1 * this.lines.length && (this._memoryCleanupPosition = 0, this._memoryCleanupQueue.enqueue((() => this._batchedMemoryCleanup())));
3930 }
3931 _batchedMemoryCleanup() {
3932 let e3 = true;
3933 this._memoryCleanupPosition >= this.lines.length && (this._memoryCleanupPosition = 0, e3 = false);
3934 let t3 = 0;
3935 for (; this._memoryCleanupPosition < this.lines.length; ) if (t3 += this.lines.get(this._memoryCleanupPosition++).cleanupMemory(), t3 > 100) return true;
3936 return e3;
3937 }
3938 get _isReflowEnabled() {
3939 const e3 = this._optionsService.rawOptions.windowsPty;
3940 return e3 && e3.buildNumber ? this._hasScrollback && "conpty" === e3.backend && e3.buildNumber >= 21376 : this._hasScrollback && !this._optionsService.rawOptions.windowsMode;

Callers 1

resizeMethod · 0.80

Calls 2

cleanupMemoryMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected