optimization: declaimed tsvref and its variants as inline