promotional bannermobile promotional banner

AE2 Search Optimization

A mod for AE2UEL, improving the smoothness of AE2 terminal search and adding a handy recent search history feature
屏幕截图 2026-08-18 135204.png

屏幕截图 2026-08-18 135204.png

屏幕截图 2026-08-18 135209.png

屏幕截图 2026-08-18 135209.png

Description

AE2 Search Optimization

A Minecraft 1.12.2 client-side optimization mod for AE2UEL, improving the smoothness of AE2 terminal search and adding a handy recent search history feature.


Features

🔍 Search Performance Optimization

This mod optimizes the lag that occurs when searching in AE2 terminals with a large number of items while the Tooltip search feature is enabled, from two angles:

  • Tooltip Search Index When AE2's "Search Tooltips" option is enabled, the mod builds a tooltip text index for all items, allowing searches to match tooltip content quickly. Index generation is split into small per-tick time slices (at most 10ms per tick by default), avoiding the noticeable lag caused by a full tooltip scan in a single GUI refresh. Search results refresh automatically once the index is updated.

  • Search Query Cache Caches the repeated regex compilation and string splitting operations performed during a search, avoiding the expensive compilation overhead for every item and further reducing search latency.

  • Benchmark Tested in an AE terminal with 3.4k+ item types. Before optimization: the first search after opening a terminal froze for 1-2s; with "Standard Search" kept enabled, opening the terminal itself froze for 1-2s. After optimization: both freezes become nearly imperceptible. The trade-off is that, since tooltips need to be cached, the first search after opening a terminal gradually reveals tooltip search results within 1-2s (name search and subsequent searches are unaffected).

🕘 Recent Search History

Displays a recent search dropdown below the search box in AE2 terminals, making it easy to quickly reuse previous search terms. This feature is ported from AE2 Recent Search (MIT License, Copyright (c) 2026 zh5112).

  • Favorites: Pin frequently used search terms to the top for priority display.
  • Keyboard Navigation: Use the up/down arrow keys to quickly select between history entries.
  • Apply on Click: Click a history entry to apply that search term directly.
  • Delete Single / Clear All: Remove individual entries, or clear the entire history at once.
  • Built-in Settings Panel: Open the settings page directly inside the AE2 container.
  • Per-Player Storage: History is saved separately for each player, without interference.
  • External Search Sync: Supports syncing with JEI.

Configuration

The config file is located at config/ae2searchoptimization.cfg and can be edited in-game or manually.

Category Option Default Description
performance searchOptimizationEnabled true Whether search performance optimization is enabled
performance tooltipIndexBudgetMillis 10 Maximum milliseconds spent generating the tooltip index per tick (range 1 ~ 1000). Higher values build the index faster but may cause slight lag.
recentSearch maxVisibleEntries 10 Maximum number of entries shown in the recent search dropdown.

License

  • The search optimization part of this mod is original code.
  • The recent search history feature is ported from AE2 Recent Search and is licensed under the MIT License (Copyright (c) 2026 zh5112).

The AE2 Search Optimization Team

profile avatar
  • 1
    Followers
  • 11
    Projects
  • 28.1K
    Downloads

More from Shiver211View all