Build status page eats CPU

Open
#514 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
clojure

Research direction

Reproduce the issue by displaying the status page and calling clerk/build!, then use the performance monitor to investigate the reported style recalculations. Done means the status page no longer causes roughly 60 style recalculations per second or significant CPU consumption.

Written by the indexing model from the issue text.

Description

I'm chasing this issue from some time. When clerk/build! is called and status page is displayed, CPU consumption is raised to the significant level.

Performance monitor shows that there are around 60 style recalculations per second.
Red arrow shows time I called clerk/build!

image

Dominant language
Clojure
Stars
2.1k
Forks
87
Avg merge
3m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nextjournal/clerk

All issues in nextjournal/clerk

Similar issues

More Clojure issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.