perf: useNow is a resource hog #1434

Closed
opened 2023-03-16 13:28:41 +00:00 by WofWca · 6 comments
Contributor

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
Author
Contributor

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

Sorry, I meant to create it in the `frontend` repo.
Owner
PR is up: https://kolaente.dev/vikunja/frontend/pulls/3255
Member

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

@WofWca May I ask, how you exactly got to the screenshot?
Author
Contributor
  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
Member

PR is merged

PR is merged
Author
Contributor
https://kolaente.dev/vikunja/frontend/pulls/3255
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#1434
No description provided.