weight_compare
RB_PROTOTYPE_STATIC(weights, weight, entry, weight_compare);
RB_GENERATE(weights, weight, entry, weight_compare);