Skip to content

Commit b3f41b5

Browse files
authored
⚡ (minor) Cleanup and slight optimiztation (#98)
* 🗑️ (patch) Remove extra includes * Add catch_all to type_info list * Cleaner and faster implementation
1 parent 3e6a7d7 commit b3f41b5

File tree

15 files changed

+493
-489
lines changed

15 files changed

+493
-489
lines changed

benchmark/conanfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ def requirements(self):
6565
bootstrap = self.python_requires["libhal-bootstrap"]
6666
bootstrap.module.add_demo_requirements(self)
6767
if self.options.platform != "mac":
68-
self.requires("libhal-exceptions/1.4.1")
68+
self.requires("libhal-exceptions/1.4.2")
Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
11
depth,error_size,destructor_percentage,pulse_us
2-
50,4,0,342.12
3-
35,4,0,244.71
4-
15,4,0,116.5
5-
5,4,0,52.0
6-
1,4,0,26.17
7-
50,4,25,431.75
8-
35,4,25,307.46
9-
15,4,25,144.12
10-
5,4,25,65.79
11-
1,4,25,33.58
12-
50,4,50,514.25
13-
35,4,50,369.5
14-
15,4,50,172.0
15-
5,4,50,72.71
16-
1,4,50,33.54
17-
50,4,100,687.25
18-
35,4,100,486.92
19-
15,4,100,220.54
20-
5,4,100,87.29
21-
1,4,100,33.58
22-
50,16,0,342.17
23-
35,16,0,244.75
24-
15,16,0,116.42
25-
5,16,0,52.04
26-
1,16,0,26.17
27-
50,16,25,431.79
28-
35,16,25,307.5
29-
15,16,25,144.17
30-
5,16,25,65.83
31-
1,16,25,33.62
32-
50,16,50,514.29
33-
35,16,50,369.54
34-
15,16,50,172.04
35-
5,16,50,72.75
36-
1,16,50,33.62
37-
50,16,100,687.17
38-
35,16,100,487.0
39-
15,16,100,220.62
40-
5,16,100,87.33
41-
1,16,100,33.62
42-
50,65,0,352.62
43-
35,65,0,255.25
44-
15,65,0,126.96
45-
5,65,0,62.5
46-
1,65,0,36.67
47-
50,65,25,442.12
48-
35,65,25,317.88
49-
15,65,25,154.58
50-
5,65,25,76.21
51-
1,65,25,44.0
52-
50,65,50,524.71
53-
35,65,50,379.88
54-
15,65,50,182.46
55-
5,65,50,83.17
56-
1,65,50,44.0
57-
50,65,100,697.54
58-
35,65,100,497.29
59-
15,65,100,231.0
60-
5,65,100,97.75
61-
1,65,100,44.04
2+
50,4,0,341.33
3+
35,4,0,244.79
4+
15,4,0,117.21
5+
5,4,0,52.12
6+
1,4,0,26.54
7+
50,4,25,429.54
8+
35,4,25,306.83
9+
15,4,25,144.96
10+
5,4,25,66.79
11+
1,4,25,34.25
12+
50,4,50,510.33
13+
35,4,50,366.88
14+
15,4,50,171.33
15+
5,4,50,73.96
16+
1,4,50,34.25
17+
50,4,100,677.79
18+
35,4,100,480.96
19+
15,4,100,217.92
20+
5,4,100,86.96
21+
1,4,100,34.25
22+
50,16,0,341.33
23+
35,16,0,244.83
24+
15,16,0,117.12
25+
5,16,0,52.17
26+
1,16,0,26.58
27+
50,16,25,429.5
28+
35,16,25,307.21
29+
15,16,25,144.96
30+
5,16,25,66.42
31+
1,16,25,34.29
32+
50,16,50,510.33
33+
35,16,50,366.88
34+
15,16,50,171.38
35+
5,16,50,74.0
36+
1,16,50,34.25
37+
50,16,100,677.75
38+
35,16,100,481.0
39+
15,16,100,217.92
40+
5,16,100,87.04
41+
1,16,100,34.25
42+
50,65,0,357.0
43+
35,65,0,260.42
44+
15,65,0,132.75
45+
5,65,0,67.75
46+
1,65,0,42.17
47+
50,65,25,445.5
48+
35,65,25,322.75
49+
15,65,25,160.12
50+
5,65,25,81.96
51+
1,65,25,49.75
52+
50,65,50,525.88
53+
35,65,50,382.38
54+
15,65,50,186.88
55+
5,65,50,89.5
56+
1,65,50,49.75
57+
50,65,100,693.33
58+
35,65,100,496.54
59+
15,65,100,233.46
60+
5,65,100,102.5
61+
1,65,100,49.79
Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
11
depth,error_size,destructor_percentage,pulse_us
2-
50,4,0,2339.79
3-
35,4,0,1716.62
4-
15,4,0,807.08
5-
5,4,0,349.21
6-
1,4,0,161.46
7-
50,4,25,2614.88
8-
35,4,25,1855.21
9-
15,4,25,871.12
10-
5,4,25,393.25
11-
1,4,25,181.67
12-
50,4,50,2870.12
13-
35,4,50,2048.88
14-
15,4,50,955.42
15-
5,4,50,404.12
16-
1,4,50,181.67
17-
50,4,100,3369.71
18-
35,4,100,2398.21
19-
15,4,100,1087.79
20-
5,4,100,444.67
21-
1,4,100,181.71
22-
50,16,0,2341.92
23-
35,16,0,1710.54
24-
15,16,0,814.04
25-
5,16,0,354.62
26-
1,16,0,165.17
27-
50,16,25,2623.08
28-
35,16,25,1859.08
29-
15,16,25,873.38
30-
5,16,25,391.58
31-
1,16,25,185.46
32-
50,16,50,2868.42
33-
35,16,50,2050.88
34-
15,16,50,946.88
35-
5,16,50,407.79
36-
1,16,50,185.5
37-
50,16,100,3371.96
38-
35,16,100,2389.88
39-
15,16,100,1086.21
40-
5,16,100,446.83
41-
1,16,100,185.5
42-
50,65,0,2354.79
43-
35,65,0,1724.92
44-
15,65,0,822.92
45-
5,65,0,363.54
46-
1,65,0,174.17
47-
50,65,25,2632.21
48-
35,65,25,1868.08
49-
15,65,25,875.58
50-
5,65,25,404.46
51-
1,65,25,194.38
52-
50,65,50,2881.33
53-
35,65,50,2055.25
54-
15,65,50,962.71
55-
5,65,50,416.79
56-
1,65,50,194.38
57-
50,65,100,3374.0
58-
35,65,100,2405.58
59-
15,65,100,1098.96
60-
5,65,100,459.62
61-
1,65,100,194.42
2+
50,4,0,2310.83
3+
35,4,0,1660.04
4+
15,4,0,778.21
5+
5,4,0,335.29
6+
1,4,0,170.96
7+
50,4,25,2547.5
8+
35,4,25,1809.08
9+
15,4,25,833.04
10+
5,4,25,391.12
11+
1,4,25,194.46
12+
50,4,50,2868.46
13+
35,4,50,2057.5
14+
15,4,50,956.62
15+
5,4,50,415.38
16+
1,4,50,194.5
17+
50,4,100,3386.04
18+
35,4,100,2411.58
19+
15,4,100,1100.08
20+
5,4,100,456.25
21+
1,4,100,194.46
22+
50,16,0,2313.04
23+
35,16,0,1664.12
24+
15,16,0,776.46
25+
5,16,0,333.5
26+
1,16,0,169.33
27+
50,16,25,2545.67
28+
35,16,25,1807.42
29+
15,16,25,824.96
30+
5,16,25,393.38
31+
1,16,25,196.58
32+
50,16,50,2870.5
33+
35,16,50,2051.46
34+
15,16,50,962.21
35+
5,16,50,417.62
36+
1,16,50,196.54
37+
50,16,100,3391.33
38+
35,16,100,2409.79
39+
15,16,100,1102.25
40+
5,16,100,450.21
41+
1,16,100,196.58
42+
50,65,0,2320.0
43+
35,65,0,1677.62
44+
15,65,0,794.08
45+
5,65,0,351.17
46+
1,65,0,186.88
47+
50,65,25,2563.29
48+
35,65,25,1824.96
49+
15,65,25,845.88
50+
5,65,25,410.96
51+
1,65,25,214.33
52+
50,65,50,2887.88
53+
35,65,50,2070.71
54+
15,65,50,975.75
55+
5,65,50,435.21
56+
1,65,50,214.29
57+
50,65,100,3405.0
58+
35,65,100,2427.42
59+
15,65,100,1109.62
60+
5,65,100,469.58
61+
1,65,100,214.29
Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
11
depth,error_size,destructor_percentage,pulse_us
2-
50,4,0,1657.12
3-
35,4,0,1201.67
4-
15,4,0,575.17
5-
5,4,0,258.71
6-
1,4,0,146.62
7-
50,4,25,1871.33
8-
35,4,25,1328.54
9-
15,4,25,620.17
10-
5,4,25,312.08
11-
1,4,25,166.58
12-
50,4,50,2188.79
13-
35,4,50,1573.83
14-
15,4,50,741.46
15-
5,4,50,334.88
16-
1,4,50,166.62
17-
50,4,100,2687.46
18-
35,4,100,1908.21
19-
15,4,100,881.46
20-
5,4,100,374.21
21-
1,4,100,166.58
22-
50,16,0,1659.17
23-
35,16,0,1205.38
24-
15,16,0,573.67
25-
5,16,0,257.21
26-
1,16,0,145.0
27-
50,16,25,1869.83
28-
35,16,25,1326.92
29-
15,16,25,611.62
30-
5,16,25,314.21
31-
1,16,25,170.42
32-
50,16,50,2190.71
33-
35,16,50,1567.75
34-
15,16,50,746.62
35-
5,16,50,333.25
36-
1,16,50,170.42
37-
50,16,100,2679.08
38-
35,16,100,1913.54
39-
15,16,100,879.71
40-
5,16,100,376.33
41-
1,16,100,170.38
42-
50,65,0,1666.38
43-
35,65,0,1219.5
44-
15,65,0,591.42
45-
5,65,0,275.0
46-
1,65,0,162.92
47-
50,65,25,1887.62
48-
35,65,25,1344.58
49-
15,65,25,632.67
50-
5,65,25,332.12
51-
1,65,25,184.38
52-
50,65,50,2208.42
53-
35,65,50,1586.79
54-
15,65,50,760.67
55-
5,65,50,351.12
56-
1,65,50,184.38
57-
50,65,100,2699.92
58-
35,65,100,1927.54
59-
15,65,100,897.71
60-
5,65,100,394.29
61-
1,65,100,184.38
2+
50,4,0,1646.75
3+
35,4,0,1194.5
4+
15,4,0,564.46
5+
5,4,0,260.5
6+
1,4,0,139.83
7+
50,4,25,1925.75
8+
35,4,25,1374.17
9+
15,4,25,658.38
10+
5,4,25,314.46
11+
1,4,25,161.46
12+
50,4,50,2205.29
13+
35,4,50,1577.17
14+
15,4,50,742.88
15+
5,4,50,330.88
16+
1,4,50,161.5
17+
50,4,100,2732.92
18+
35,4,100,1947.38
19+
15,4,100,890.5
20+
5,4,100,372.17
21+
1,4,100,161.46
22+
50,16,0,1638.79
23+
35,16,0,1192.75
24+
15,16,0,566.42
25+
5,16,0,262.58
26+
1,16,0,141.96
27+
50,16,25,1927.75
28+
35,16,25,1376.12
29+
15,16,25,663.88
30+
5,16,25,316.71
31+
1,16,25,163.58
32+
50,16,50,2207.12
33+
35,16,50,1580.92
34+
15,16,50,741.25
35+
5,16,50,333.0
36+
1,16,50,163.54
37+
50,16,100,2738.25
38+
35,16,100,1945.67
39+
15,16,100,892.62
40+
5,16,100,366.21
41+
1,16,100,163.58
42+
50,65,0,1654.38
43+
35,65,0,1205.17
44+
15,65,0,579.04
45+
5,65,0,275.21
46+
1,65,0,154.46
47+
50,65,25,1934.42
48+
35,65,25,1388.75
49+
15,65,25,672.62
50+
5,65,25,310.25
51+
1,65,25,176.25
52+
50,65,50,2211.58
53+
35,65,50,1589.71
54+
15,65,50,753.75
55+
5,65,50,345.54
56+
1,65,50,176.21
57+
50,65,100,2747.08
58+
35,65,100,1958.29
59+
15,65,100,894.92
60+
5,65,100,380.42
61+
1,65,100,176.25

0 commit comments

Comments
 (0)