Skip to content

Edge-Drop is a clipboard shelf on the edge of your screen. Hover to open it. Drag files and images into any app, click to copy text and links. Free and open-source for Windows.

perf(memory): configure V8 memory cap and size optimization switches

Deepender251a70d3d0af87
diff --git a/electron/main/index.ts b/electron/main/index.ts
index 0959173..946ae1f 100644
--- a/electron/main/index.ts
+++ b/electron/main/index.ts
@@ -34,6 +34,9 @@ app.disableHardwareAcceleration()
// Restrict the renderer to a single webContents and forbid remote module usage.
app.enableSandbox()
+// Optimize V8 heap allocation and garbage collection for low RAM overhead.
+app.commandLine.appendSwitch('js-flags', '--max-old-space-size=128 --optimize-for-size')
+
// ---- single instance -------------------------------------------------------
const gotLock = app.requestSingleInstanceLock()
if (!gotLock) {