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

dcdpr / jp / 26630395827
66%

Build:
DEFAULT BRANCH: main
Ran 29 May 2026 09:50AM UTC
Jobs 1
Files 382
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

29 May 2026 09:48AM UTC coverage: 66.34% (-0.003%) from 66.343%
26630395827

push

github

web-flow
perf(conversation): Fix O(n²) clone cost in `Extend` impl (#689)

The `Extend<ConversationEventWithConfig>` impl previously delegated to
`push_with_config_delta` on every iteration. That method called
`self.last()` each time, which walks the entire event stream and
deep-clones `PartialAppConfig` to compute the tail config. For a stream
with n events this meant n full walks — O(n²) in clones.

The fix inlines the delta logic directly into the `extend` loop and
caches a running `tail` config across iterations. Each step now clones
only the current config value, reducing the cost to O(n). The removed
`push_with_config_delta` helper is no longer needed.

A characterization test is added to guard the impl: it verifies that
extending an empty stream from a source stream reproduces both the
observed iter sequence and the serialized on-disk shape of the source.

This performance problem was found using the new `jp_debug` tool-suite.

---------

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

13 of 13 new or added lines in 1 file covered. (100.0%)

31998 of 48233 relevant lines covered (66.34%)

259.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 26630395827.1 29 May 2026 09:50AM UTC 382
66.34
GitHub Action Run
Source Files on build 26630395827
  • Tree
  • List 382
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26630395827
  • 90b18ad1 on github
  • Prev Build on main (#26629106715)
  • Next Build on main (#26630466329)
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