Skip to content
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

web: limit number of states in output to prevent unresponsive browser #31

Open
m4lvin opened this issue May 16, 2023 · 0 comments
Open

Comments

@m4lvin
Copy link
Member

m4lvin commented May 16, 2023

When generating a knowledge structure with a lot of states a query such as WHERE? Top will lead to a huge list in the output that can take very long to render and make the browser unresponsive or even crash while rendering too much MathJax.

It might thus be good to set a limit of the maximum number of states listed, similar to how we do not draw Kripke models for more than 32 possible worlds:

if numberOfStates mykns > 32
then html . TL.pack $ "Sorry, I will not draw " ++ show (numberOfStates mykns) ++ " states!"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant