Unrolled general compression string loop to avoid i==0 checks. Addressed review comments.