Since you did quite performance check, i wonder about thoses one:
-> `i = s or 1`