optimize 'struct ts_pid' init code