Endcord Labs · Performance

Shipping 500 plugins without slowing Discord down

Endcord comes with nearly three times as many plugins as Vencord. Here's how it still uses about the same memory as Vencord.

Every plugin is code, and code costs memory and time. Endcord ships 500 plugins in five languages; Vencord ships 178 and Equicord 381. If cost grew with the plugin count, Endcord would be the heaviest mod by far. It isn't, and the reason is mostly one rule.

Plugins are off until you turn them on

A plugin that's off doesn't patch Discord, doesn't listen for events and doesn't add styles. Its code is in the bundle, but the bundle is read once and then mostly left alone: what grows memory over time is what code does, not how much of it exists.

A few habits keep it that way when a plugin is on:

  • Lazy lookups. Plugins find Discord's modules with findByPropsLazy and friends, which search only when the value is first used. A plugin that never opens its settings never pays for finding the settings component.
  • Patches that run once. A patch edits Discord's code as the module loads, before it ever runs. There's no polling and nothing watching the page.
  • Clean stops. Turning a plugin off removes its listeners, styles and timers, so a plugin you tried once and turned off costs nothing afterwards.

What we measured

We launched Discord Stable cold six times for each setup on the same PC (Core i5-12400F, 32 GB RAM, Windows 10), with every mod on its default settings, and took the median of each measure.

EndcordVencordEquicordNo mod
Plugins500178381–
Total memory698 MB687 MB727 MB672 MB
JS heap after cleanup107 MB106 MB110 MB98 MB
Idle CPU, one core1.80%1.87%1.88%1.51%
Launch to usable3.75 s3.42 s3.43 s3.38 s

Endcord sits 11 MB above Vencord in total memory, while single runs of the same setup swung by more than 90 MB. In other words, the two are within the noise. Idle CPU is the lowest of the three mods, though all three are within a few tenths of a percent, and most idle work comes from Discord itself.

Where it still costs: startup

The one place size shows is launch time. Endcord's renderer bundle is about 5 MB, against 3 MB for Equicord and 0.7 MB for Vencord, and reading it costs roughly a third of a second. That's the honest price of 500 plugins and five full translations.

So the bundle has a ceiling. A check called the quality ratchet measures it on every change and fails the build if it grows more than 2% past the last accepted size. Growing it on purpose means raising the limit in a reviewed commit, so it can't creep up unnoticed.

Check our numbers

The benchmark script, every raw result and the charts are in benchmark/. Turning plugins on costs something in any mod, so if you have dozens enabled, your numbers will be higher than these.

More from Endcord LabsTalk about it on Discord