-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic implementation of BoardMoveExecutor #9
base: master
Are you sure you want to change the base?
Conversation
private static readonly delegate*<ref BitBoardMap, void>* FPs; | ||
|
||
[ModuleInitializer] | ||
internal static void RunCctor() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to do this. It's already done by Util.cs
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't tell me you're pre-running all cctors...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am. See:
Line 13 in 4a89176
public static void RunStaticConstructor() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does that even work? The ModuleInitializer attribute seems to be missing. Either way, RIP startup perf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it works? — Not 100% sure, but running it seems to be fine.
The start-up performance isn't actually hurt that much.
Merged it with the latest changes to begin testing ... |
Basic implementation of an "array" ( We use native memory ) of function pointers, pointing to generic instantiations!
All 64 moves get their own specialized method body, with irrelevant code eliminated
Method selection code looks something like...