perf: useNow is a resource hog #1434

Open
opened 6 days ago by WofWca · 4 comments
WofWca commented 6 days ago

One of the places it's used in:

9b050846a4/src/components/home/Logo.vue (L8-L9)

While nothing is happening, it takes a considerable portion of CPU time.

image

Consider providing the interval option.

One of the places it's used in: https://kolaente.dev/vikunja/frontend/src/commit/9b050846a41a3d05872cf3ca3ca1f06688084501/src/components/home/Logo.vue#L8-L9 While nothing is happening, it takes a considerable portion of CPU time. ![image](/attachments/20162669-0c5c-44a0-8ca3-30da5732b257) Consider providing the `interval` option.
3.5 KiB
WofWca commented 6 days ago
Poster

Sorry, I meant to create it in the frontend repo.

Sorry, I meant to create it in the `frontend` repo.
konrad commented 6 days ago
Owner
PR is up: https://kolaente.dev/vikunja/frontend/pulls/3255
dpschen commented 5 days ago

@WofWca May I ask, how you exactly got to the screenshot?

@WofWca May I ask, how you exactly got to the screenshot?
WofWca commented 5 days ago
Poster
  1. Open https://try.vikunja.io/projects/13/list in a Chromium browser
  2. Open the dev tools
  3. "Performance" tab
  4. Start recording
  5. Do nothing for 25 seconds
  6. Stop recording
  7. Open the "summary" tab below
1. Open https://try.vikunja.io/projects/13/list in a Chromium browser 2. Open the dev tools 3. "Performance" tab 4. Start recording 5. Do nothing for 25 seconds 6. Stop recording 7. Open the "summary" tab below
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/api#1434
Loading…
There is no content yet.