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

Serious lag when using the cloud version for Hack The Box reports #370

Open
vantascure opened this issue Dec 23, 2024 · 2 comments
Open

Comments

@vantascure
Copy link

I faced some serious lag when using the cloud service to write a Hack The Box certificate report. It'd take a second or two for words to show after I'd typed them. I only faced the issue in the Internal Network Compromise section of the design. I believe it's due to the long detailed walkthrough I've written. My detailed walkthrough is 1993 lines and 13859 words. Switching to markdown only mode has made the lag more bearable, but not entirely resolved the issue. There's still some delay.

Design: HTB CPTS Report v1.1

@MWedl
Copy link
Contributor

MWedl commented Dec 23, 2024

Hi,
this is a known problem in our markdown editor implementation. Long markdown texts take some time to parse and render to HTML. With increasing text length, the parsing time also increases. Unfortunately, markdown is hard to parse incrementally (because of some strange rules in the CommonMark specification), so we have to re-parse the whole document on changes resulting in lags for long documents.

Some markdown editors implement markdown parsing while typing with (incremental) heuristics, but this approach leads to discrepancies between the editor highlighting and the rendered HTML. Because of this drawback, we decided against using (fast but inaccurate) heuristics.

@MWedl
Copy link
Contributor

MWedl commented Dec 23, 2024

Additionally, to switching to markdown-only mode, you could also try to disable spell checks. This will not solve the root cause, but it might slightly increase responsiveness.

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

No branches or pull requests

2 participants