Lokathor / safe_arch

Exposes arch-specific intrinsics as safe function (via cfg).
https://docs.rs/safe_arch
Apache License 2.0
48 stars 8 forks source link

Add prefetch instructions #107

Closed mcroomp closed 1 year ago

mcroomp commented 1 year ago

Add instructions for safely doing prefetches and writing data without polluting the cache. Useful when processing large files in a single pass.

Lokathor commented 1 year ago

The prefetch seems fine, but the streaming writes can cause trouble if they're used and then the reference is sent to another thread without a fence instruction. I think that we can only add the prefetch functions as safe functions.

Lokathor commented 1 year ago

Should be out now in version 0.7.1, sorry about the delay!