Closed Montandalar closed 2 years ago
been somewhat aware of this issue for a while. a rate limiter would be welcome.
Duplicates are already ignored. Perhaps it would make sense to optimize apply_filter
instead. I will have a look into that.
Whoever encounters this issue in the newest Unified Inventory version is kindly asked to provide reproduction steps. At best, also profile the mod to narrow down the callbacks/functions that take longest.
Closing until further information is provided.
L-Dog on Minetest forums reports that it's possible to cause major disruptive lag simply by spamming searches. A per-player rate limit should probably be applied to
unified_inventory.apply_filter
, especially since that can iterate all ofminetest.registered_items
.