Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BigDataViewer_Core_Extension
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BioinformaticDataCompression
BigDataViewer_Core_Extension
Commits
9b770f74
Commit
9b770f74
authored
11 years ago
by
Tobias Pietzsch
Browse files
Options
Downloads
Patches
Plain Diff
do not allocate new arrays for reordering hdf5 dimensions.
parent
ab35512e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/bdv/img/hdf5/Hdf5VolatileShortArrayLoader.java
+7
-1
7 additions, 1 deletion
src/main/java/bdv/img/hdf5/Hdf5VolatileShortArrayLoader.java
with
7 additions
and
1 deletion
src/main/java/bdv/img/hdf5/Hdf5VolatileShortArrayLoader.java
+
7
−
1
View file @
9b770f74
...
...
@@ -45,6 +45,10 @@ public class Hdf5VolatileShortArrayLoader implements CacheArrayLoader< VolatileS
public
static
volatile
long
sLoad
=
0
;
private
final
int
[]
reorderedDimensions
=
new
int
[
3
];
private
final
long
[]
reorderedMin
=
new
long
[
3
];
@Override
public
VolatileShortArray
loadArray
(
final
int
timepoint
,
final
int
setup
,
final
int
level
,
final
int
[]
dimensions
,
final
long
[]
min
)
{
...
...
@@ -66,7 +70,9 @@ public class Hdf5VolatileShortArrayLoader implements CacheArrayLoader< VolatileS
// log.println( sw.toString() );
}
final
long
t0
=
System
.
currentTimeMillis
();
array
=
hdf5Reader
.
readShortMDArrayBlockWithOffset
(
getCellsPath
(
timepoint
,
setup
,
level
),
reorder
(
dimensions
),
reorder
(
min
)
);
reorder
(
dimensions
,
reorderedDimensions
);
reorder
(
min
,
reorderedMin
);
array
=
hdf5Reader
.
readShortMDArrayBlockWithOffset
(
getCellsPath
(
timepoint
,
setup
,
level
),
reorderedDimensions
,
reorderedMin
);
pEnd
=
System
.
currentTimeMillis
();
final
long
t
=
pEnd
-
t0
;
final
long
size
=
array
.
size
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment