|
Ran
|
Jobs
1
|
Files
808
|
Run time
1min
|
Badge
README BADGES
|
push
github
Classify the ingredient index positions map Partial matches, such as extractions that ignore data components, had to linearly scan all indexed instances of a priority level. Classifying the positions map by the ingredient's first category type reduces that to the instances that share the category, which for item stacks means the instances of the same item. This was tried before in 8f53b7eb5 and reverted, because it regressed the exact-match and non-empty position lookups (CyclopsMC/IntegratedTerminals#134): classified maps resolve exact matches by scanning their sub-map, and copy all their values into a new list when iterated. Neither applies any more, as both of those lookups are now resolved without IIngredientMap#getAll. Measured with 5000 instances spread over 200 positions: index_lookup_item goes from 0.3302 to 0.1642 ms/op. Closes #1412
3044 of 9214 branches covered (33.04%)
Branch coverage included in aggregate %.
12875 of 24742 relevant lines covered (52.04%)
2.49 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 13 |
86.86 |
26.19% | org/cyclops/integrateddynamics/core/network/IngredientPositionsIndex.java |
| 6 |
82.83 |
-7.07% | org/cyclops/integrateddynamics/core/part/write/PartStateWriterBase.java |
| 4 |
72.57 |
-3.54% | org/cyclops/integrateddynamics/core/part/PartStateActiveVariableBase.java |
| 3 |
70.97 |
-4.84% | org/cyclops/integrateddynamics/blockentity/BlockEntityVariablestore.java |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 33318654865.1 | 808 |
46.88 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|