speculate:Rust的并行推测库

时间:2021-05-14 06:45:21
【文件属性】:
文件名称:speculate:Rust的并行推测库
文件大小:90KB
文件格式:ZIP
更新时间:2021-05-14 06:45:21
Rust 基于,这是一个用于执行推测执行的库。 它是为Rust 0.8编写的,并使用rustpkg进行编译。 用法 speculate库中提供了两个函数: spec和specfold 。 简单的两任务推测 spec函数如下所示: fn spec (producer: ~fn() -> A, predictor: ~fn() -> A, consumer: ~fn(A) -> B) -> B producer和consumer功能都需要花费很长时间才能运行,而predictor应该很快。 producer在自己的任务中运行,然后predictor进行猜测,并将其传递给运行的consumer 。 producer完成
【文件预览】:
speculate-master
----.gitignore(59B)
----capstone.pdf(92KB)
----src()
--------speculate()
--------spec_css()
--------testing()
--------css_lex()
----README.md(8KB)

网友评论