Commit 695f5ea
authored
Performance Optimizations using std::move and constexpr (#66)
* Replaced const with constexpr, to allow compiler to define various things at compile time rather than run time. This may have a small bump on performance, but either way it can't hurt.
* Added move semantics (via std::move within the utility lib). This has a small perfomance benefit since it will move the value rather than copy it. I only made these changes within the toString functions where I know the std::library is being used.1 parent ad4f8f6 commit 695f5ea
1 file changed
+21
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
81 | 94 | | |
82 | 95 | | |
83 | 96 | | |
| |||
188 | 201 | | |
189 | 202 | | |
190 | 203 | | |
191 | | - | |
| 204 | + | |
192 | 205 | | |
193 | 206 | | |
194 | 207 | | |
195 | | - | |
| 208 | + | |
196 | 209 | | |
197 | 210 | | |
198 | 211 | | |
199 | | - | |
| 212 | + | |
200 | 213 | | |
201 | 214 | | |
202 | 215 | | |
203 | | - | |
| 216 | + | |
204 | 217 | | |
205 | 218 | | |
206 | 219 | | |
207 | | - | |
| 220 | + | |
208 | 221 | | |
209 | 222 | | |
210 | 223 | | |
211 | | - | |
| 224 | + | |
212 | 225 | | |
213 | 226 | | |
214 | 227 | | |
| |||
1935 | 1948 | | |
1936 | 1949 | | |
1937 | 1950 | | |
1938 | | - | |
| 1951 | + | |
1939 | 1952 | | |
1940 | 1953 | | |
1941 | 1954 | | |
| |||
1946 | 1959 | | |
1947 | 1960 | | |
1948 | 1961 | | |
1949 | | - | |
| 1962 | + | |
1950 | 1963 | | |
1951 | 1964 | | |
1952 | 1965 | | |
| |||
0 commit comments