Skip to content

Performance Improvment #330

Description

@RandallFlagg

@Hirogen I am going to put here a few thing that I think can improve the code performance, resources, and general improvements to the code base.
I will number them in order to have easier track. If code change happens, I will open a new issue and link to it from here.

    1. AppDomain.CurrentDomain.AssemblyResolve += ColumnizerResolveEventHandler; - I would like to remove this event registration and instead call the code directly without the event. Do you see a problem doing that?
    1. OnDataGridView_CellPainting - Why is this event registered? Why not to do the logic on the SelectionChanged event?
    1. The DelayedTrigger mechanism is causing a big delay when navigating over the lines in the DataGridView. I suggest removing it and replace it with a simple event mechanism. Solved in PR Status line update - Remove the thread and use event instead #333
    1. In ReadToBufferList function in LogFileReader there is a while condition that makes the loading super slow due to a lot of notifications being sent. Is there a reason for limiting the buffer with lines and not with size? Why is the default so small - 500? If I put 100000 to the "linesPerBuffer" setting the time goes down from 30 sec. to about 1sec. Solved in PR Improve loading time of a file by changing the default from 500 to 50000 lines per buffer #345
    1. When closing a tab there seems to be a small delay. Need to check and see why and if it can be improved. Solved in PR Removed the thread that watches file changes #366
    1. I am trying to improve the ipc(remove the grpc.core). I am trying to test the 1 instance(enable/disable) but can't seem to make it work. @Hirogen can you help? I am on the Devlopment branch. I get an exception on line 159 in Program.cs
      client.NewWindowOrLockedWindow(new Grpc.FileNames { FileNames_ = { args } });
      Exception: The SSL connection could not be established, see inner exception.
      InnerException: Cannot determine the frame size or a corrupted frame was received.
      - Continues in Change from gRPC to Named Pipes #374

Activity

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

Metadata

Metadata

Labels

enhancementthis will make things better

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions