diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-04 12:01:41 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-04 12:01:41 +0200 |
| commit | 80b065f757240af7920862b3e09f32a6dc06d392 (patch) | |
| tree | c0223ba1f0a3254305f59637b3fb25bd58698cf8 /src/core/core.h | |
| parent | fd111a1a51b8293f79db6284331af50824df92b9 (diff) | |
| download | nissy-core-80b065f757240af7920862b3e09f32a6dc06d392.tar.gz nissy-core-80b065f757240af7920862b3e09f32a6dc06d392.zip | |
Table-based transformations (will revert immediately)
This commit changes transformations to being based on a lookup
table intead of a big switch. This is something I had planned for a long
time and the code is nicer with this change. But unfortunately the performance
is noticeably worse, so I'll revert all these changes in the next commit.
I wanted to push this anyway so we can keep track of this.
Diffstat (limited to 'src/core/core.h')
| -rw-r--r-- | src/core/core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/core.h b/src/core/core.h index 6ffd76f..429039c 100644 --- a/src/core/core.h +++ b/src/core/core.h | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | #include "moves.h" | 6 | #include "moves.h" |
| 7 | 7 | ||
| 8 | /* TODO: work in progress */ | 8 | /* TODO: work in progress */ |
| 9 | #if 0 | 9 | #if 1 |
| 10 | #include "transform.h" | 10 | #include "transform.h" |
| 11 | #else | 11 | #else |
| 12 | #include "transform_with_switch.h" | 12 | #include "transform_with_switch.h" |
