需要进一步优化性能

This commit is contained in:
zhangyuheng 2024-05-28 18:02:03 +08:00
parent 8b1d5d4291
commit b18bbf5a7f
1 changed files with 1 additions and 0 deletions

View File

@ -228,6 +228,7 @@ public class Cache {
}
private List<DominionDTO> getDominionsParentAndChildren(Location loc) {
// todo: 需要进一步优化性能考虑将领地按照mca文件分组减少遍历次数
String world = loc.getWorld().getName();
List<Integer> dominions_id = world_dominions.get(world);
List<DominionDTO> in_dominions = new ArrayList<>();