【文件属性】:
文件名称:icfpc2019-rust:重新实现https
文件大小:1.4MB
文件格式:ZIP
更新时间:2021-03-16 00:39:04
Rust
在Rust中重新实现以比较性能。
问题
建立和运行
RUST_BACKTRACE=1 cargo run problems/prob-049.desc --interactive
运行发行版:
cargo run --release problems/prob-049.desc
解决所有问题:
cargo run --release problems/*.desc --threads=12
性能比较
代码版本:
:提交比赛的原始代码。
:各种源代码级优化。
:我使用库存库编写的版本。 与Clojure版本完全相同的算法和数据结构。
:调整了构建选项。
:更快的哈希。
:数据结构的改进(由于算法不同,无法直接比较)。
测试机器:MacBook Pro(15英寸,2018年),2.6 GHz Core i7,6核,带有超线程功能,16 GB 2400 MHz DDR4,