Commit c66b8c9
TArray Indexing Performance (#83)
* improve TArray benchmarks
* update benchmarks
* 1. Base.@propagate_inbounds, 2. use function in benchmarks
* optimize indexing for Matrix{Float64}
* indent code
* move TArray data into TArray
* update benchmarks
* update comments and fix other issues
* more performant way to perdicate if a weakref is empty
* underlying array type as a parametric type of TArray
* minor update
* update according to code review
* fix broadcasting
* Update Project.toml
Co-authored-by: Hong Ge <hg344@cam.ac.uk>1 parent ca8099f commit c66b8c9
File tree
6 files changed
+159
-117
lines changed- src
- test
- utils
6 files changed
+159
-117
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
32 | | - | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| |||
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
| 114 | + | |
110 | 115 | | |
111 | 116 | | |
112 | 117 | | |
| |||
0 commit comments