-
Notifications
You must be signed in to change notification settings - Fork 11
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
Reuse engine process #17
Comments
I think I've already messaged you about my engine process fix on discord, but i'll mention it here also ;) The way I implemented it in my own is like this: The communication is basically implemented in js (see https://github.com/Disservin/fast/blob/master/src/ts/ChessProcess.ts), by using the tauri shell and command api. I hope this helps ;) |
Hey, I was thinking about implementing this if you're interested, by keeping the engine running in the background properly in rust. I wasn't sure what was happening with the engine settings PR which shakes a couple of things in that area up. Would you mind a PR for this, or prefer to get the other PR merged first? |
@joshka That would be great! Ah yeah, that branch can be disregarded. This is a higher priority and I'll happily deal with any conflicts if this lands first. |
Tbf disabling that check and implementing it js side is probably way simpler and easier to do than to reimplement everything in rust :D |
I did see your rationale on this. I have a general view that hacking around security controls is something that leads to suboptimal results when things change. So I think it's still worth doing in Rust. |
The security controls in this case anyway don’t offer much value… but yeah it’s a nasty workaround I admit and once the mentioned pr gets merged everything will be simpler anyway |
I've already implemented this in my GUI: The relevant code is here The way it works is basically this:
|
I see this is basically nothing happening about this for over an year, and I think it is kinda important - it was the first thing I noticed when I peek at the code. Let me work on that, it should not be to difficult to fix and it would vastly improve performance (no need to compute the whole line every time!). |
Don't start a new engine process on each request
The text was updated successfully, but these errors were encountered: