Open
Description
AVL tree will be faster than linked-list traversal for GMR lookup.
@jdinan noted:
Fortunately, ARMCI-MPI already has an AVL tree: https://github.com/pmodels/armci-mpi/blob/master/src/conflict_tree.c
Not sure why I didn't use this for GMR lookups. I suspect the reason is that when the number of memory regions is small, the performance improvement is negligible.
Obsolete comment by @jeffhammond:
https://github.com/freebsd/freebsd/blob/master/sys/cddl/contrib/opensolaris/common/avl/avl.c exists but I do not know if CDDL is acceptable in ARMCI-MPI. If not, we'll have to implement from scratch.
Migrated from https://github.com/jeffhammond/armci-mpi/issues/25