diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2019-05-27 09:14:34 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2019-05-27 09:14:34 +0000 |
commit | e3468b0834bb31e24dcbdf6d3fe61f45f9d1a6ae (patch) | |
tree | 531435843aeab483c39915f461f1b06354a6a2b1 /games/hack/hack.engrave.c | |
parent | 2de2395c821f9fc4e23012d8dec687e3b8cd945c (diff) |
Switch the peer TAILQ to a RB tree indexed by the peer id. This way
getpeerbyid() gets a lot quicker at finding the peer when many peers
are configured. In my test case the difference is around 20% runtime.
OK denis@
Diffstat (limited to 'games/hack/hack.engrave.c')
0 files changed, 0 insertions, 0 deletions