question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UI hangs for long times on larger texts

See original GitHub issue

When working with bigger files, the editor hangs for large amount of times each time the tokens generated by the lexer are invalidated (so on each paste, text insertion/removal, …).

As an example I used this reasonably sized json file: http://www.json-generator.com/api/json/get/cfAolJlfma?indent=2 (~85kb)

On my macbook with 6-Core i7 on 2.6ghz this file hangs the UI for around 30 seconds when pasting it into boop. This is caused by the json label regex lexing. When I disable line 70 in BoopLexer.swift the time to paste this file is around 1 second. When I disable all lexers that use the quoteLookahead regex pattern, it’s almost instant.

Since I don’t know a lot about swift, savannakit and it’s lexers, I’m opening an issue. Maybe with some pointers to how we could solve this, I might be able to work this into a PR fixing it 😃

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
IvanMathycommented, Sep 21, 2020

1.3.0 is now under review by Apple, should be released in the next couple days! Closing this issue, feel free to reopen if needed.

1reaction
IvanMathycommented, Sep 22, 2020

@abhi21git As I said, it will be available in the next couple of days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

user interface - .NET GUI freezes when big load of data
I have a grid an a sort of output text box to log strings. The grid has a row for every message expected...
Read more >
Large response bodies cause hanging · Issue #3832 - GitHub
This is a pretty big chunk of data, but Swagger-UI insists on rendering the entire body, which is neither performant or useful.
Read more >
Find the Cause of a UI Freeze | dotTrace Documentation
The algorithm of fixing UI freezes shown in this tutorial ... First, let's remove the visible time range filter as we no longer...
Read more >
Slow rendering - Android Developers
If your app suffers from slow UI rendering, then the system is forced to skip frames and the user will perceive stuttering in...
Read more >
515401 - Tab freezes when large text is pasted via clipboard
Issue 515401: Tab freezes when large text is pasted via clipboard · 1. Create a simple HTML file with <textarea> and open it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found