diff options
author | Hang Su <darcy.sh@antfin.com> | 2019-09-18 13:35:23 +0800 |
---|---|---|
committer | Hang Su <darcy.sh@antfin.com> | 2019-09-19 22:16:52 +0800 |
commit | d72c63664b46af52f4880a2a015666a52deb0749 (patch) | |
tree | c482e7a2686e4e6287ea4e8391d5f31affbaba5e /pkg/sentry/fs/fsutil/BUILD | |
parent | 28f431335b182519f420e026edac8b7bcfd2a40a (diff) |
Accelerate byte lookup in string with `bytealg/indexbyte`
`bytealg/indexbyte` will use AVX or SSE instruction set, if possible,
which could accelerate `CopyStringIn` function by 28%.
In worst case(CPU doesn't support SSE), `bytealg/indexbyte`
will degenerate to traversal lookup. When dealing with
short strings, `bytealg/indexbyte` has the same performance level as
before.
Signed-off-by: Jianfeng Tan <henry.tjf@antfin.com>
Signed-off-by: Hang Su <darcy.sh@antfin.com>
Diffstat (limited to 'pkg/sentry/fs/fsutil/BUILD')
0 files changed, 0 insertions, 0 deletions