getezy / ezy

🔥 GUI client for gRPC/gRPC-Web
https://getezy.dev
Mozilla Public License 2.0
993 stars 17 forks source link

[BUG] Extremely lag when typing a request #37

Open AnotiaWang opened 1 year ago

AnotiaWang commented 1 year ago

Describe the bug When I type in the request input box, it lags a few seconds before the content actually goes into the request, and the app consumes a lot of CPU. You can see in the GIF below.

To Reproduce Steps to reproduce the behavior:

  1. Open a proto
  2. Type something

(If any additional information needed, please point out)

Expected behavior Input content should appear on the screen immediately

Screenshots image bandicam 2022-12-12 20-25-40-835

Envitonment

notmedia commented 1 year ago

@AnotiaWang thank you for reporting this! It's related to high priority issue #13. How many tabs you have opened?

AnotiaWang commented 1 year ago

How many tabs you have opened?

About 5~6 tabs

notmedia commented 1 year ago

Yeah, if you close all tabs and work only with one then will be CPU load reduced?

AnotiaWang commented 1 year ago

Yes, and the lag will be much less recognizable

notmedia commented 1 year ago

The problem here is in data persistence, right now all application data stored in single JSON file, each update causes to parse this file and rewrite it on disk. It's a big problem, I rebuild this as soon as possible.

AnotiaWang commented 1 year ago

Okay