This one is mainly stylistic changes to the RB tree test. But I've also modified it to accept any number of argvs, since it does no harm if unused arguments are passed, and it can make other program simpler (e.g., if I'm calling multiple functions dynamically, and some do take arguments, I don't have to special case this one).
This one changes the initial size of a
bu_ptbl
from 64 to 16. Here are some benchmarks with this change applied.I've changed the
blen
check from<= 0
to== 0
becauseblen
issize_t
which is unsigned.And I removed the assignment to
k
from the subscript becausek
is not used anywhere afterwards.This one fixes a typo where
BU_LIST_INIT_ZER0
is used instead ofBU_LIST_INIT_ZERO
(zero spelled with the digit 0 instead of the letter o).This one is mainly stylistic changes to the RB tree test. But I've also modified it to accept any number of
argv
s, since it does no harm if unused arguments are passed, and it can make other program simpler (e.g., if I'm calling multiple functions dynamically, and some do take arguments, I don't have to special case this one).I applied these myself.