Skip to content

Commit

Permalink
In dataminmax(), Chrome was taking either 35ms ... or 7+ seconds to f…
Browse files Browse the repository at this point in the history
…ind the

min/max on a 2048x2048 int image (casa.fits in js9debug.html). We optimized:
  1. assign data[i] to val instead of accessing data[i] more than once
  2. use direct min/max compare instead of Math.min() and Math.max
  3. use local params instead of this.raw, this.params, this.raw.data
(Also, move js9Readme.png into images directory)
  • Loading branch information
ericmandel committed Jul 10, 2020
1 parent 856fe94 commit 52984e6
Show file tree
Hide file tree
Showing 5 changed files with 149 additions and 142 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
JS9: astronomical image display everywhere
==========================================

![JS9](js9Readme.png)
![JS9](images/js9Readme.png)

What does it do?
----------------
Expand Down
File renamed without changes
Loading

0 comments on commit 52984e6

Please sign in to comment.