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.
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).
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).
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. |