JEI Fast Start

Shortens the JEI freeze when joining a world in packs with very large recipe sets. JEI stays synchronous.

JEI Fast Start shortens the freeze you sit through when joining a world in packs with very large recipe sets, such as GregTech-scale packs.

JEI still loads before you get control, and it shows exactly what it showed before. Nothing loads in the background and nothing is hidden or delayed. The mod only removes wasted work during JEI's startup.

Measured result

All the Mods 9 Expert (349 mods, 81,743 JEI ingredients), joining a dedicated server:

  • Connect to playable: 105 to 142 s without the mod, 58 to 66 s with it
  • JEI startup: 95 to 127 s without the mod, 46 to 55 s with it

One machine, one pack. Smaller packs have less of this work to remove and will gain less.

What it changes

  • JEI item stack cache. While JEI indexes recipes it rebuilds an item stack for every ingredient through a cache that expires after one second. The mod replaces that cache with a fixed-size table and, during JEI startup, reuses the stack each ingredient was created from.
  • KubeJS item hiding (only if KubeJS is installed). JEIEvents.hideItems rescans JEI's whole ingredient list on every hide() call. The mod copies that list once per event.

Requirements

  • Minecraft 1.20.1, Forge 47.x
  • JEI 15.x (tested on 15.59 and 15.74)
  • Client side only. Not needed on servers.

Good to know

  • The mod hooks JEI internals. Before patching a class it checks that everything it needs is present; if not, it logs a warning and leaves JEI unmodified. Version 1.0.0 crashed on JEI newer than 15.59; use 1.0.1 or later.
  • Not tested together with async JEI loaders such as Just Enough Threads.
  • Tested on All the Mods 9 Expert only so far.

Source, measurements and the full analysis: https://github.com/FallenPumpking/jei-fast-start

JEI Fast Start Team

profile avatar
  • 1
    Projects
  • 36
    Downloads

More from FallenPumpKing