Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions benchmarks/datafusion-bench/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,18 +230,14 @@ async fn main() -> anyhow::Result<()> {
Ok(())
}

fn use_scan_api() -> bool {
std::env::var("VORTEX_USE_SCAN_API").is_ok_and(|v| v == "1")
}

async fn register_benchmark_tables<B: Benchmark + ?Sized>(
session: &SessionContext,
benchmark: &B,
format: Format,
) -> anyhow::Result<()> {
match format {
Format::Arrow => register_arrow_tables(session, benchmark).await,
_ if use_scan_api() && matches!(format, Format::OnDiskVortex | Format::VortexCompact) => {
Format::OnDiskVortex | Format::VortexCompact => {
register_v2_tables(session, benchmark, format).await
}
_ => {
Expand Down
2 changes: 1 addition & 1 deletion vortex-bench/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ use vortex::session::VortexSession;
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;

pub static SESSION: LazyLock<VortexSession> =
LazyLock::new(|| VortexSession::default().with_tokio());
LazyLock::new(|| VortexSession::default().with_pinned_cpu_pool());

#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, Serialize, Deserialize)]
pub struct Target {
Expand Down
1 change: 1 addition & 0 deletions vortex-io/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ vortex-session = { workspace = true }

[target.'cfg(unix)'.dependencies]
custom-labels = { workspace = true }
libc = "0.2"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
# Smol is our default impl, so we don't want it to be optional, but it cannot be part of wasm
Expand Down
2 changes: 2 additions & 0 deletions vortex-io/src/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ pub use handle::*;
#[cfg(not(target_arch = "wasm32"))]
pub mod current;
#[cfg(not(target_arch = "wasm32"))]
pub mod pinned_pool;
#[cfg(not(target_arch = "wasm32"))]
mod pool;
#[cfg(not(target_arch = "wasm32"))]
pub mod single;
Expand Down
Loading
Loading