Re: [Freecol-developers] bidirectional relationships and performance

2016-12-09 Thread Michael T. Pope
On Fri, 9 Dec 2016 03:00:20 +0100 "Enrico Weigelt, metux IT consult" wrote: > in many places we have (semantically) bi-directional relationships, eg. > diplomatic relationships, etc, which are currently implemented as lists > on only one side of the relationship, so when coming from the other > si

[Freecol-developers] bidirectional relationships and performance

2016-12-08 Thread Enrico Weigelt, metux IT consult
Hi folks, in many places we have (semantically) bi-directional relationships, eg. diplomatic relationships, etc, which are currently implemented as lists on only one side of the relationship, so when coming from the other side we'll end up in full list scans. (eg. see ServerPlayer::csKill()) Wha