-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speed up getindex with AbstractVector{Bool} row selection (#1848)
Computing the integer indices before indexing into the vectors is faster. The array indexing code uses a LogicalIndex wrapper which computes the number of true indices and doesn't allocate a vector of integer indices, but it's only slightly faster when there's a single column, and slower for more than one column.
- Loading branch information
Showing
1 changed file
with
9 additions
and
5 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