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

CyclopsMC / CyclopsCore / 34051127524
31%
master-1.21: 31%

Build:
Build:
LAST BUILD BRANCH: master-1.21-lts
DEFAULT BRANCH: master-1.21
Ran 06 Sep 2026 06:18PM UTC
Jobs 1
Files 614
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

06 Sep 2026 06:10PM UTC coverage: 31.112% (+0.09%) from 31.026%
34051127524

Pull #238

github

claude
Hash data components only for stacks that carry a patch

A component map hashes its prototype alongside its patch, and the prototype is
the item's default components. The item is already in the hash, so hashing its
defaults again distinguishes nothing while walking the whole default map. For a
plain stack, which carries no patch at all, that walk was the entire cost of the
hash, and plain stacks are what most of a storage network consists of.

This stays consistent with equality because PatchedDataComponentMap keeps its
patch sanitized: setting a component to its default removes it from the patch
rather than storing it. Two stacks of one item therefore have equal components
exactly when they have equal patches.

Vanilla can only report an empty patch by building one, which is free for
exactly the stacks this catches, so the common implementation does that and
NeoForge overrides it with the direct check.

Measured on the IntegratedDynamics index benchmarks, over 5000 plain stacks
distinct by item and count:

  index_lookup_exact  0.002014 -> 0.000988 ms/op
  index_modification  0.001276 -> 0.000582 ms/op

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mxjin31W1Lmq5XK1CCe84v
Pull Request #238: Fix ItemStack hashing and classified ingredient lookups

1307 of 4611 branches covered (28.35%)

Branch coverage included in aggregate %.

3890 of 12093 relevant lines covered (32.17%)

1.56 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
14.94
12.44% org/cyclops/cyclopscore/helper/ItemStackHelpersCommon.java
Jobs
ID Job ID Ran Files Coverage
1 34051127524.1 06 Sep 2026 06:18PM UTC 873
25.22
GitHub Action Run
Source Files on build 34051127524
  • Tree
  • List 614
  • Changed 28
  • Source Changed 0
  • Coverage Changed 28
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #34051127524
  • Pull Request #238
  • PR Base - master-26-lts (#33961614624)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc