adonis0147 commented on PR #10386: URL: https://github.com/apache/doris/pull/10386#issuecomment-1165336946
> > Hi @mrhhsg , the underlying implementation of `std::iota` is also a loop. Why does this modification take effect? > > ```c++ > > template <class _ForwardIterator, class _Tp> > > inline _LIBCPP_INLINE_VISIBILITY > > void > > iota(_ForwardIterator __first, _ForwardIterator __last, _Tp __value_) > > { > > for (; __first != __last; ++__first, (void) ++__value_) > > *__first = __value_; > > } > > ``` > > Maybe the original for-loop cannot be vectorized. I think it is better to provide some evidences to prove it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org