The article std::find() and memchr() Optimizations contains benchmark results for an Intel Core i5, an i7 and an older AMD system. This followup also adds results for a relatively recent SPARC system and an older PPC one. SPARC T5¶ First released in 2013, the SPARC T5 is a relative …| Georg's Log
Assume you need to parse a record based format with flexible width and one-byte delimiters. When using C++, the std::find() STL algorithm is the obvious choice for efficiently locating the delimiters. The idiomatic C solution is to use memchr(). Expectations Sample Code Methods How fast is std::find()? Does …| Georg's Log