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

jpedroh / generic-merge / 10120435053
80%

Build:
DEFAULT BRANCH: main
Ran 27 Jul 2024 03:17AM UTC
Jobs 1
Files 39
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

27 Jul 2024 03:15AM UTC coverage: 80.724% (-0.1%) from 80.842%
10120435053

push

github

web-flow
perf: Use Cow for value in MergedCSTNode (#64)

In most scenarios, we don't need to create a new `String` when merging
the values of two CSTNodes. More often than not, we simply pick the
value from either the left or right node, or, ideally, the values of
both nodes are equal to the base. Consequently, creating owned Strings
is uncommon, and it would be more efficient to return a reference to the
value of one of the `CSTNodes`.

To accommodate this use case, this PR updates the `MergedCSTNode` to use
`Cow<str>` instead of `String`. This change eliminates unnecessary
`to_string` calls, potentially leading to performance improvements in
some scenarios.

576 of 1044 branches covered (55.17%)

Branch coverage included in aggregate %.

108 of 110 new or added lines in 5 files covered. (98.18%)

2054 of 2214 relevant lines covered (92.77%)

286315.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10120435053.1 27 Jul 2024 03:17AM UTC 0
80.72
GitHub Action Run
Source Files on build 10120435053
Detailed source file information is not available for this build.
  • Back to Repo
  • c4959204 on github
  • Prev Build on main (#10067641424)
  • Next Build on main (#10120855645)
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