[PATCH] D46163: [DO NOT SUBMIT] Do strlen() while computing xxhash

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 26 17:57:01 PDT 2018


ruiu created this revision.
ruiu added reviewers: grimar, espindola.
Herald added subscribers: hiraditya, arichardson, emaste.

I created this patch with the hope that computing a hash value while
calculating the string length is more efficient than doing the two in
separate passes. Unfortunately I couldn't find any performance improvement
on my machine with this patch, but you might find it interesting, so
I'm sharing it.


https://reviews.llvm.org/D46163

Files:
  lld/ELF/InputSection.cpp
  lld/ELF/InputSection.h
  llvm/include/llvm/Support/xxhash.h
  llvm/lib/Support/xxhash.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46163.144257.patch
Type: text/x-patch
Size: 4361 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180427/92e5f707/attachment.bin>


More information about the llvm-commits mailing list