Change loadState to use a B-tree for the segment addresses when relocating the states. This is better than the linear scan particularly now that there are large numbers of segments.
Change loadState to use a B-tree for the segment addresses when relocating the states.
This is better than the linear scan particularly now that there are large numbers of segments.

polyml/polyml,dcjm/polyml,polyml/polyml,polyml/polyml,dcjm/polyml,polyml/polyml,dcjm/polyml,dcjm/polyml