• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dcdpr / jp / 26806865505
67%

Build:
DEFAULT BRANCH: main
Ran 02 Jun 2026 08:10AM UTC
Jobs 1
Files 398
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Jun 2026 08:05AM UTC coverage: 66.496% (-0.02%) from 66.514%
26806865505

push

github

web-flow
perf(cli, md): Improve `jp c print` performance (#718)

`two_face::syntax::extra_newlines` deserializes the full `SyntaxSet`
from its embedded binary dump and returns a fresh instance on every
call. Syntect's grammar regexes are lazily compiled, so each new
instance starts cold, causing `fancy_regex::compile` to fire thousands
of times across a long conversation's code blocks.

This commit introduces a single `static SYNTAXES: LazyLock<SyntaxSet>`
and replaces every call-site in `format.rs` and `render.rs` with a
reference to it. The regexes are now compiled once per process and
reused for all subsequent highlighting.

The impact on `jp c print --style=full` for a long conversation:

| Metric                         |  Before |  After |
|--------------------------------|--------:|-------:|
| Wall clock                     | 21.25 s | 0.73 s |
| `fancy_regex::compile` samples | 73,970  |     41 |

Signed-off-by: Jean Mertz <git@jeanmertz.com>

4 of 4 new or added lines in 2 files covered. (100.0%)

8 existing lines in 2 files now uncovered.

33395 of 50221 relevant lines covered (66.5%)

251.52 hits per line

Coverage Regressions

Lines Coverage ∆ File
7
81.86
-3.1% crates/contrib/schematic_macros/src/common/field.rs
1
90.74
-0.93% crates/contrib/schematic_macros/src/common/container.rs
Jobs
ID Job ID Ran Files Coverage
1 26806865505.1 02 Jun 2026 08:10AM UTC 398
66.5
GitHub Action Run
Source Files on build 26806865505
  • Tree
  • List 398
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26806865505
  • 8ee5573d on github
  • Prev Build on main (#26806547805)
  • Next Build on main (#26807604959)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc