This commit is contained in:
Zengtudor 2024-09-21 23:28:41 +08:00
parent 44376a449c
commit da9d7ba2fe
2 changed files with 17 additions and 17 deletions

View File

@ -1,6 +1,22 @@
# DNASequence
[提问者问题原文链接](https://www.zhihu.com/question/36143261/answer/3624848144)
## 关于如何构建本项目
> 请确保安装了构建工具xmake和任意C++构建工具并将路径添加到了PATH目录
[如何安装xmake?链接](https://gitee.com/tboox/xmake#%E5%AE%89%E8%A3%85)
```bash
#编译 -v 表示 verbose 输出详细编译信息具体说明去上面的xmake链接看看
xmake b -v dna_pybind
# 运行
xmake r
# 生成 visual studio 文件夹点进去打开sln文件即可使用visual studio编辑和调试很方便
xmake project -k vsxmake
```
## 代码逻辑介绍
@ -89,22 +105,6 @@ dna::open_file_and_calculate<(size_t)4 * 1024 * 1024 *1024 , (size_t)5e4+5>("fil
>
> mingw的IO优化不行
## 关于如何构建本项目
> 请确保安装了构建工具xmake和任意C++构建工具并将路径添加到了PATH目录
[如何安装xmake?链接](https://gitee.com/tboox/xmake#%E5%AE%89%E8%A3%85)
```bash
#编译 -v 表示 verbose 输出详细编译信息具体说明去上面的xmake链接看看
xmake -v
# 运行
xmake r
# 生成 visual studio 文件夹点进去打开sln文件即可使用visual studio编辑和调试很方便
xmake project -k vsxmake
```
## 性能展示
> 什么环境下性能最好?

View File

@ -31,9 +31,9 @@ target("dna_pybind")
add_packages("pybind11")
set_kind("shared")
set_filename("dna.pyd")
set_suffixname("")
add_files("src/main.cpp")
set_basename("dna")
add_shflags("-fopenmp")
after_build(
function (target)
print(target:targetdir())