mirror of
https://github.com/ColdeZhang/Dominion.git
synced 2024-12-20 01:06:31 +08:00
需要进一步优化性能
This commit is contained in:
parent
8b1d5d4291
commit
b18bbf5a7f
@ -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<>();
|
||||
|
Loading…
Reference in New Issue
Block a user