-
Notifications
You must be signed in to change notification settings - Fork 9
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 performance issues #9
Comments
Far better results for me:
|
I'm particularly interested in how the changing of chars changes speed. I doubt it's anything to do with tabs or graphics but likely more due to OS. |
If I set the lexer in |
It depends on their meaning in the language the |
Which is why I also proposed a while back the view only tags |
But I'm still not sure whether constantly removing and re-adding the tags doesn't introduce another performance issues. |
I think that may be something for me to test and if it doesn't yield any successes then it can be ditched |
Well it would only be one line at a time and even then you can only fit so many tags into one line so unless it's s VERY dense line it should be faster. And if it is very dense, wouldn't it be faster only to highlight those in view? The only issue is if you want to make a peer widget later for a minimap, it wouldn't have the highlighting. It would make sense to only highlight what's in view for it though and you're likely not reading the code from the minimap or checking the highlighting from there and it also makes the viewable area pop out more. @rdbende Would we like to give it a try? If it's slower it can be removed. It might also fix the docstring issue in #10 by getting the tokens for all lines and only highlighting stuff in view. |
Yes, we could give it a try, but even though I know that the slowness kinda annoying, this isn't a priority for me right now. |
Yeah I get it. I kinda assume that if I'm making anything for chlorophyll or tklinenums that I'm on my own and any help I get is to be greatly appreciative of. |
Yeah, sorry bout that |
No no no, don't apologize. You've been super helpful with everything and I'm really glad you've spent time to work with me on this. It means a lot. |
Hello, I have modified the highlight area function in codeview.py, making it smaller and improving performance a little. I have tested it in a python file with 1500 lines of code.
Here is the time it took to insert and highlight all the text
|
I'm not sure why this would be any faster than the existing solution. Your code is basically just a slower wrapper for the |
@Moosems:
@rdbende:
@Moosems:
The text was updated successfully, but these errors were encountered: