forked from catmaid/CATMAID
-
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.
Image block layer: optimize slice flattening
Make two optimization to slice flattening: - If the text column stride is smaller than the row stride, load the texture into GPU memory that way and transpose it during rendering. - Only fall back to numjs.flatten when elements are discontiguous in memory. Optimize the fully-contiguous and row-contiguous cases to use direct TypedArray views and copying. These two changes reduce slice flattening in 3-view ortho from 60% to 40% of profile. This also eliminates any copying in the fully-contiguous case, i.e., for XY views into naturally ordered N5 stacks. Closes catmaid#1959.
- Loading branch information
1 parent
0e882f2
commit 4ee358f
Showing
1 changed file
with
68 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