forked from pola-rs/polars
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[python 0.6.7] undo performance regression on large no. of threads (p…
- Loading branch information
Showing
7 changed files
with
68 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,23 @@ | ||
use arrow::{buffer::Buffer, util::bit_util}; | ||
|
||
pub trait IsValid { | ||
/// # Safety | ||
/// no bound checks | ||
unsafe fn is_valid_unchecked(&self, i: usize) -> bool; | ||
|
||
/// # Safety | ||
/// no bound checks | ||
unsafe fn is_null_unchecked(&self, i: usize) -> bool; | ||
} | ||
|
||
impl IsValid for Buffer { | ||
#[inline] | ||
unsafe fn is_valid_unchecked(&self, i: usize) -> bool { | ||
bit_util::get_bit_raw(self.as_ptr(), i) | ||
} | ||
|
||
#[inline] | ||
unsafe fn is_null_unchecked(&self, i: usize) -> bool { | ||
!self.is_valid_unchecked(i) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "py-polars" | ||
version = "0.6.6" | ||
version = "0.6.7" | ||
authors = ["ritchie46 <[email protected]>"] | ||
edition = "2018" | ||
readme = "README.md" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters