Rearrange append to multiply by sizeOfT in the templated code
Multiplying by sizeOfT is very expensive in the common code. The
compiler must generate a multiply instruction. When the sizeof(T)
is known at compiler time, then the compiler can strength reduce the
multiply to shifts and adds. This CL provide a large performance
improvement for the system.
Change the two most common append calls to use this technique.
Reviewed-by: John Stiles <firstname.lastname@example.org>
Commit-Queue: Herb Derby <email@example.com>
2 files changed