AdamNiederer / AdamNiederer/faster

Indexing into an array / lookup table (lut)?

Đang mở
#70 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
1.6k
Fork
52
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hi thanks for the lib! My usage needs to index into an array based on a value. Shortly speaking, it is doing something like:

```
for x in 0..width {
let a = array_one[x+42] - array_one[x-42]; //???
let b = ...some arthi op on `a` which I know faster can do...
let c = array_two[b]; //???
}
```

Question: How can I parallalize the array indexing operation?
There do exist SIMD intrinsics for such lut(lookup table) operations. I have used OpenCV's universal intrinsics in C++, and it did provide one: https://docs.opencv.org/4.5.3/df/d91/group__core__hal__intrin.html#ga37fe7c336a68ae5f48967a066473a4ff

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.