diff options
Diffstat (limited to 'TODO.md')
| -rw-r--r-- | TODO.md | 36 |
1 files changed, 20 insertions, 16 deletions
| @@ -161,18 +161,32 @@ The coordinate solvers do not support pause / resume / stop via callback | |||
| 161 | function. This is not too hard to add (just copy what the H48 solver is doing), | 161 | function. This is not too hard to add (just copy what the H48 solver is doing), |
| 162 | but also not too useful, as coordinate solvers are generally very fast. | 162 | but also not too useful, as coordinate solvers are generally very fast. |
| 163 | 163 | ||
| 164 | ### Cube analysis | ||
| 165 | |||
| 166 | A new API function can be added to analyze a given cube position. | ||
| 167 | Example of analysis are: | ||
| 168 | |||
| 169 | * HTR state. Should return a short name for the HTR case. | ||
| 170 | * EO state (no NISS). First a nomenclature for EO cases should be defined. | ||
| 171 | * ARM subsets. | ||
| 172 | * VR case. | ||
| 173 | |||
| 164 | ## Performance improvements | 174 | ## Performance improvements |
| 165 | 175 | ||
| 166 | I have worked a lot on performance, but some things can still be improved. | 176 | I have worked a lot on performance, but some things can still be improved. |
| 167 | 177 | ||
| 168 | ### H48 performance improvements | 178 | ### H48 performance improvements |
| 169 | 179 | ||
| 170 | The only idea I have left for improving the performance of the H48 optimal | 180 | Some more tricks can be used: |
| 171 | solver is implementing *microthreading*. This means making the main | 181 | |
| 172 | solve DFS iterative, and working on multiple DFS branches at the same | 182 | * **Inverse bound after X and X' is the same**: this avoids an extra |
| 173 | time on the same physical thread. The end goal is taking advantage of | 183 | table lookup. |
| 174 | [prefetching](https://sebastiano.tronto.net/blog/2026-01-28-prefetch/) | 184 | * **Sibling node bounding to >= N+2**: I attempted to implement this a |
| 175 | even further. | 185 | while back, but got lost in details and ultimately gave up. With the |
| 186 | current pipelined setup it could be easier to implement. Performance | ||
| 187 | gain should be very small though (5%-10%). | ||
| 188 | * **Microthreading**: Make the main solve DFS iterative, work on multiple | ||
| 189 | DFS branches at the same time on the same physical thread. | ||
| 176 | 190 | ||
| 177 | ### Coordinate solvers | 191 | ### Coordinate solvers |
| 178 | 192 | ||
| @@ -182,16 +196,6 @@ copy what is done for the H48 optimal solver), but coordinate solvers | |||
| 182 | are generally small and fast. Parallelized pruning table generation | 196 | are generally small and fast. Parallelized pruning table generation |
| 183 | could save some time though. | 197 | could save some time though. |
| 184 | 198 | ||
| 185 | ### Cube analysis | ||
| 186 | |||
| 187 | A new API function can be added to analyze a given cube position. | ||
| 188 | Example of analysis are: | ||
| 189 | |||
| 190 | * HTR state. Should return a short name for the HTR case. | ||
| 191 | * EO state (no NISS). First a nomenclature for EO cases should be defined. | ||
| 192 | * ARM subsets. | ||
| 193 | * VR case. | ||
| 194 | |||
| 195 | ## Technical improvements | 199 | ## Technical improvements |
| 196 | 200 | ||
| 197 | I lumped together here a bunch of possible improvements that would not | 201 | I lumped together here a bunch of possible improvements that would not |
