Invasive Optimizations

针对其他模组的侵入式优化,旨在减少服务端(tick)延迟。 由于这些更改具有侵入性,它们更有可能导致崩溃或其他破坏性后果。 请将此类问题报告至 Issue 跟踪器,我将尝试及时回复。 每个更改都可以通过配置文件单独切换,这可以在您等待修复时暂时解决任何问题。
本模组包含的优化属于以下类别之一:
- 补丁已提交但长期未审核,或预计在下一个版本发布前有用。
- 因与质量无关的原因被拒绝的补丁。
- 没有贡献途径的补丁(例如闭源模组)。
- 已应用但在已发布版本中不可用的补丁。
- 实验性或效用存疑的补丁(默认禁用)。
- 目标模组不再维护或仅针对该 Minecraft 版本进行“修复”。
- 确定对上游维护负担过重的补丁。
当前优化:
- Accessories
accessories.roundabout_collection(1): 通过直接访问底层 keySet 避免迭代 Map entrySet。(PR)
- Applied Energistics 2
ae2.cache_fuzzy_search_max_value(4): 在初始化期间缓存 AEItemKey::fuzzySearchMaxValue。(PR)
- Botany Pots
botanypots.hopper_insertions(1): 漏斗植物盆的指数级插入退避和空位追踪 (PR)
- Create
create.fail_fast_clipboard_migration(4): 在尝试在ItemStack.<init>中进行剪贴板迁移时快速失败,减少对这一极其常见操作的影响。(PR)create.recipe_caching(7): 缓存模组中各种过程的配方。
- Pastel
pastel.nuke_item_predicate_mixin(4): 移除 Pastel 的 ItemPredicateMixin,因为它是不必要且昂贵的
- Pipez (另请参阅 Pipez Lag Fix by AlmanaX21 以获取指数退避方案)
pipez.constant_fullness_checks(6): 将连接/库存满度检查转换为 O(1) 操作pipez.early_exits(6): 如果满足特定条件,通过提前退出目标函数来减少不必要的工作pipez.extract_looped_work(6): 将一些工作移出循环以避免重复工作pipez.filter_caching(6): 使用 BitSet、整数数组或单个整数缓存标签过滤器。会使用更多内存并导致加载管道的时间略微增加。pipez.nbt_comparisons(6): 通过最小化序列化/反序列化操作,大幅提高 NBT 比较的性能pipez.stream_abuse(6): 减少热路径中对 Stream 的滥用以降低分配率 (PR)
- Placebo
- SFM
sfm.filter_caching(5): 使用 BitSet、整数数组或单个整数缓存物品和流体过滤器(目前为常规/正则表达式和标签过滤器)。会使用更多内存并导致首次编译时间增加。
- Xycraft Machines
xycraft_machines.redstone_checks(3): 提取器每个 tick 都检查红石信号,而不仅仅是在邻居更新时xycraft_machines.unnecessary_resorting(3): 提取器经常重新排序其配方,但通常没有必要
- Oritech
oritech.recipe_caching(6): 缓存动力熔炉的配方。
Invasive Optimizations

Invasive optimizations for other mods, aiming to reduce server-side (tick) lag.
The invasive nature of these changes makes them more likely to crash or otherwise break.
Please report such issues to the issue tracker and I will try to respond to them in a timely manner.
Each change can also be individually toggled through the config and should solve any issues temporarily while you wait for a fix.
Optimizations included in this mod fall under one of the following categories:
- Patch has been sent but has not reviewed for a long time or expected to be useful in the time before the next release.
- Patch denied due to reasons unrelated to quality.
- Patch has no avenue of contribution (e.g. closed source mods)
- Patch already applied but not available in released versions.
- Patch is experimental or of dubious usefulness (these are disabled by default)
- Targeted mod is no longer maintained or is "fix-only" for that Minecraft version.
- Patch determined to be too burdensome for upstream to maintain.
Current optimizations:
- Accessories
accessories.roundabout_collection(1): Avoid iterating Map entrySet by directly accessing underlying keySet. (PR)
- Applied Energistics 2
ae2.cache_fuzzy_search_max_value(4): Cache AEItemKey::fuzzySearchMaxValue during init. (PR)
- Botany Pots
botanypots.hopper_insertions(1): Hopper Botany Pot exponential insertion backoff and emptiness tracking (PR)
- Create
create.fail_fast_clipboard_migration(4): Fails fast when attempting clipboard migration inItemStack.<init>, reducing impact to this extremely common operation. (PR)create.recipe_caching(7): Caches recipes for various processes in the mod.
- Pastel
pastel.nuke_item_predicate_mixin(4): Nukes Pastel's ItemPredicateMixin as it is unnecessary and expensive
- Pipez (Also see Pipez Lag Fix by AlmanaX21 for exponential backoff)
pipez.constant_fullness_checks(6): Turns connection/inventory fullness into O(1) operationspipez.early_exits(6): Reduces unnecessary work done by exiting targeted functions early if the right conditions are metpipez.extract_looped_work(6): Move some work out of loops to avoid duplicated workpipez.filter_caching(6): Caches tag filters using BitSets, integer arrays, or single integers. Uses more memory and causes loading pipes to take marginally longer.pipez.nbt_comparisons(6): Drastically improves performance of NBT comparisons by minimizing serialization/deserialization operationspipez.stream_abuse(6): Reduces abuse of Streams in hot paths to reduce allocation rate (PR)
- Placebo
- SFM
sfm.filter_caching(5): Caches item and fluid filters (regular/regex and tag filters for now) using BitSets, integer arrays, or single integers. Uses more memory and causes first compiles to take longer.
- Xycraft Machines
xycraft_machines.redstone_checks(3): Extractors check for redstone signals every tick rather than only when their neighbours updatexycraft_machines.unnecessary_resorting(3): Extractors resort their recipes every so often but is usually not necessary
- Oritech
oritech.recipe_caching(6): Caches recipes for powered furnaces.
版本游戏版本平台发布时间本站下载
正式版
1.0.27
Invasive Optimizations 1.0.27 for 1.21.1
1.211.21.1 NeoForge 20 小时前 ·
0
1.21
1.21.1
NeoForge
20 小时前
0
下载 Invasive Optimizations
正式版
1.0.26
Invasive Optimizations 1.0.26 for 1.21.1
1.21.11.21 NeoForge 3 周前 ·
0
1.21.1
1.21
NeoForge
3 周前
0
下载 Invasive Optimizations
正式版
1.0.25
Invasive Optimizations 1.0.25 for 1.21.1
1.21.11.21 NeoForge 1 个月前 ·
0
1.21.1
1.21
NeoForge
1 个月前
0
下载 Invasive Optimizations
正式版
1.0.24
Invasive Optimizations 1.0.24 for 1.21.1
1.21.11.21 NeoForge 2 个月前 ·
0
1.21.1
1.21
NeoForge
2 个月前
0
下载 Invasive Optimizations
正式版
1.0.23
Invasive Optimizations 1.0.23 for 1.21.1
1.21.11.21 NeoForge 3 个月前 ·
0
1.21.1
1.21
NeoForge
3 个月前
0
下载 Invasive Optimizations
正式版
1.0.22
Invasive Optimizations 1.0.22 for 1.21.1
1.21.11.21 NeoForge 3 个月前 ·
0
1.21.1
1.21
NeoForge
3 个月前
0
下载 Invasive Optimizations
正式版
1.0.21
Invasive Optimizations 1.0.21 for 1.21.1
1.21.11.21 NeoForge 3 个月前 ·
0
1.21.1
1.21
NeoForge
3 个月前
0
下载 Invasive Optimizations
正式版
1.0.20
Invasive Optimizations 1.0.20 for 1.21.1
1.21.11.21 NeoForge 3 个月前 ·
0
1.21.1
1.21
NeoForge
3 个月前
0
下载 Invasive Optimizations
正式版
1.0.19
Invasive Optimizations 1.0.19 for 1.21.1
1.21.11.21 NeoForge 3 个月前 ·
0
1.21.1
1.21
NeoForge
3 个月前
0
下载 Invasive Optimizations
正式版
1.0.18
Invasive Optimizations 1.0.18 for 1.21.1
1.21.11.21 NeoForge 3 个月前 ·
0
1.21.1
1.21
NeoForge
3 个月前
0
下载 Invasive Optimizations
1.0.27
正式版
2026-11-17
自动生成的更新日志:
- 功能:提升 ae2.cache_fuzzy_search_max_value 的版本要求
- 重构:使缓存调整更加严格
- 功能:更积极的配方缓存增长
- 重构:使用位图实现更智能的动态缓存大小跟踪
- 修复:在 gradle.properties 中链接到 oritech maven
1.0.26
正式版
2026-10-25
自动生成的更新日志:
- 功能:动态配方缓存
- 功能:新增
create.recipe_caching - 重构:为常见类型提供静态配方缓存
- 重构:迁移
oritech.recipe_caching - 功能:新增
oritech.recipe_caching - 功能:添加通用配方缓存以供将来使用
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
评论 0
登录后参与评分
还没有评论,来抢沙发吧