hedhyw / json-log-viewer

Interactive viewer for JSON logs.
MIT License
77 stars 7 forks source link

perf(#64): optimize memory and CPU usage #69

Closed hedhyw closed 3 months ago

hedhyw commented 3 months ago
  1. Parse only 100 rows after the current cursor (by config).
  2. Add threshold between file reloads -> 1s (by config).
  3. Limit the maximum size of the file -> 1 GB (by config).
  4. Trigger garbage collector after file reloading.
  5. Add benchmark test.