Skip to content

Commit 2aecf77

Browse files
committed
[Experiment] IoUring based tokio IO
Signed-off-by: Adam Gutglick <adam@spiraldb.com>
1 parent 89b236b commit 2aecf77

File tree

6 files changed

+24
-5
lines changed

6 files changed

+24
-5
lines changed

.cargo/config.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
[target.'cfg(target_family="unix")']
1+
[target.'cfg(target_os="macos")']
22
rustflags = [
33
"-C", "force-frame-pointers=yes",
44
]
55

6+
[target.'cfg(target_os="linux")']
7+
rustflags = [
8+
"-C", "force-frame-pointers=yes",
9+
"--cfg", "tokio_unstable",
10+
]
11+
612
[target.wasm32-unknown-unknown]
713
rustflags = ['--cfg', 'getrandom_backend="wasm_js"', '-C', 'target-feature=+atomics']
814

.github/workflows/bench-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
- name: Build binary
6666
shell: bash
6767
env:
68-
RUSTFLAGS: "-C target-cpu=native -C force-frame-pointers=yes"
68+
RUSTFLAGS: "-C target-cpu=native -C force-frame-pointers=yes --cfg tokio_unstable"
6969
run: |
7070
cargo build --bin ${{ matrix.benchmark.id }} --package bench-vortex --profile release_debug
7171

.github/workflows/bench.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- name: Build binary
6767
shell: bash
6868
env:
69-
RUSTFLAGS: "-C target-cpu=native -C force-frame-pointers=yes"
69+
RUSTFLAGS: "-C target-cpu=native -C force-frame-pointers=yes --cfg tokio_unstable"
7070
# The main difference between this and `bench-pr.yml` is that we add the `lance` feature.
7171
run: |
7272
cargo build --bin ${{ matrix.benchmark.id }} --package bench-vortex --profile release_debug --features lance

.github/workflows/sql-benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ jobs:
143143
- name: Build binary
144144
shell: bash
145145
env:
146-
RUSTFLAGS: "-C target-cpu=native -C force-frame-pointers=yes"
146+
RUSTFLAGS: "-C target-cpu=native -C force-frame-pointers=yes --cfg tokio_unstable"
147147
run: |
148148
cargo build --bin query_bench --package bench-vortex --profile release_debug ${{ matrix.build_args }}
149149

Cargo.lock

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bench-vortex/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ tabled = { workspace = true, features = ["std"] }
7070
tar = { workspace = true }
7171
target-lexicon = { workspace = true }
7272
tempfile = { workspace = true }
73-
tokio = { workspace = true, features = ["full"] }
73+
tokio = { workspace = true, features = ["full", "io-uring"] }
7474
tokio-stream = { workspace = true }
7575
tokio-util = { workspace = true }
7676
tpchgen = { workspace = true }

0 commit comments

Comments
 (0)