Skip to content

Commit 095b7be

Browse files
committed
Add a few more precompiles
1 parent d019d84 commit 095b7be

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/precompile.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ function _precompile_()
55
@assert precompile(normal_mesh, (Tesselation{3,Float32,Cylinder{3,Float32},1},))
66
@assert precompile(normal_mesh, (Tesselation{3,Float32,HyperSphere{3,Float32},1},))
77
@assert precompile(normal_mesh, (HyperSphere{3,Float32},))
8+
@assert precompile(Tuple{typeof(*),SMatrix{4, 4, Float32, 16},HyperRectangle{3, Float32}}) # time: 0.11091917
9+
@assert precompile(Tuple{typeof(coordinates),HyperRectangle{2, Float32},Tuple{Int64, Int64}}) # time: 0.08693867
10+
@assert precompile(union, (HyperRectangle{3, Float32}, HyperRectangle{3, Float32}))
11+
@assert precompile(Tuple{typeof(decompose),Type{Point{2, Float32}},HyperRectangle{2, Float32}}) # time: 0.026609203
12+
@assert precompile(Tuple{Type{HyperRectangle{3, Float32}},HyperRectangle{2, Float32}}) # time: 0.023717888
13+
@assert precompile(Tuple{typeof(+),HyperRectangle{3, Float32},Point{3, Float32}}) # time: 0.006633118
14+
@assert precompile(Tuple{Type{Rect2D{T} where T},Float32,Float32,Float32,Float32}) # time: 0.001636267
15+
@assert precompile(Tuple{typeof(*),HyperRectangle{2, Float32},Float32}) # time: 0.001057589
816

917
if Base.VERSION >= v"1.6.0-DEV.1083"
1018
@assert precompile(triangle_mesh, (Polygon{2, Float32, Point2f0, LineString{2, Float32, Point2f0,

0 commit comments

Comments
 (0)