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
placebo.lazy_string_concatenation (1): 向 DynamicHolder#get 中的 Object#requireNonNull 传递 Supplier<String>,因为这是热代码中的冷路径。(PR)
placebo.streamless_hashing (1): 用等效的不使用 Stream API 的代码替换 CachedObject#hashComponents。(PR)
- 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 in ItemStack.<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) operations
pipez.early_exits (6): Reduces unnecessary work done by exiting targeted functions early if the right conditions are met
pipez.extract_looped_work (6): Move some work out of loops to avoid duplicated work
pipez.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 operations
pipez.stream_abuse (6): Reduces abuse of Streams in hot paths to reduce allocation rate (PR)
- Placebo
placebo.lazy_string_concatenation (1): Pass a Supplier<String> to Object#requireNonNull in DynamicHolder#get as it is a cold path in hot code. (PR)
placebo.streamless_hashing (1): Replaces CachedObject#hashComponents with equivalent code that does not use the Stream API. (PR)
- 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 update
xycraft_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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧