Closed EmileTrotignon closed 6 months ago
As discussed with Emile, I'm not sure about this one:
I kinda like this caching that we get for free right now, so I'm not sure this issue is worth the effort (but a timeout on query execution #37 would be nice).
When you use sherlodoc as a website, requests are made for each letter you type. But if a request is slow enough that it is not answered by the time another request arrives, it would be ideal to cancel it.
Lwt is not suitable for this kind of thing, because we do not want to link the performance critical code with Lwt, because that would make the js file size too big.
This means that we need to do that with system threads. System thread have interruption points injected by the OCaml runtime, so this should work nicely.
Fabrice kindly provided me with a short demo of interruption with system threads :