compact8.go ×1

Frontier kind: Code frontier

unlabeled · c_4689516e51fa

11 tests · 5 LOC · 1 file · introduces 0 tests · 3 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
1 range3 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
2 ranges5 lines · 1 file · Browse complete extent
All tests (intent)
11 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Introduced files, introduced tests, and structurally relevant concept specializationTestDrainClearsBacklogBits · 0 introduced LOCTestDrainClearsBacklogBi…TestDrainShrinkLimitedReadWrite · 0 introduced LOCTestDrainShrinkLimitedRe…scale_manager.go ×4 · 15 introduced LOCscale_manager.go ×4TestShadowModeSkipsDrain · 0 introduced LOCTestShadowModeSkipsDrainTestBacklogCountUpdateInMemoryOnly · 0 introduced LOCTestBacklogCountUpdateIn…scale_manager.go ×6 · 9 introduced LOCscale_manager.go ×6TestNoDrainWithBacklog · 0 introduced LOCTestNoDrainWithBacklogscale_manager.go ×1 · 2 introduced LOCscale_manager.go ×1TestNoWriteWhenBacklogUnchanged · 0 introduced LOCTestNoWriteWhenBacklogUn…scale_manager.go ×2 · 20 introduced LOCscale_manager.go ×2scale_manager.go ×1 · 2 introduced LOCscale_manager.go ×1message.pb.go ×1 · 7 introduced LOCmessage.pb.go ×1TestDrainSkippedDuringBufferTime · 0 introduced LOCTestDrainSkippedDuringBu…scale_manager.go ×1 · 2 introduced LOCscale_manager.go ×1scale_manager.go ×7 · 48 introduced LOCscale_manager.go ×7TestUpdateZeroBoundary · 0 introduced LOCTestUpdateZeroBoundarycompact8.go ×1 · 1 introduced LOCcompact8.go ×1compact8.go ×2 · 10 introduced LOCcompact8.go ×2TestUpdateSameBucket · 0 introduced LOCTestUpdateSameBucketcompact8.go ×1 · 2 introduced LOCcompact8.go ×1compact8.go ×1 · 2 introduced LOCcompact8.go ×1TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/api/matchingservice/v1/request_response.pb.go · 6878 LOCv1/request_response.pb.g…go.temporal.io/server/api/taskqueue/v1/message.pb.go · 1363 LOCv1/message.pb.gogo.temporal.io/server/common/number/compact8.go · 98 LOCnumber/compact8.gogo.temporal.io/server/service/matching/scale_manager.go · 476 LOCmatching/scale_manager.g…TestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestUpdateHysteresis · introduced test · go.temporal.io/server/common/number/TestCompact8Suite/TestUpdateHysteresisTestUpdateHysteresisTestUpdateLargeJump · introduced test · go.temporal.io/server/common/number/TestCompact8Suite/TestUpdateLargeJumpTestUpdateLargeJumpTestUpdateSameBucket · introduced test · go.temporal.io/server/common/number/TestCompact8Suite/TestUpdateSameBucketTestUpdateSameBucketTestUpdateZeroBoundary · introduced test · go.temporal.io/server/common/number/TestCompact8Suite/TestUpdateZeroBoundaryTestUpdateZeroBoundaryTestBacklogCountUpdateInMemoryOnly · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestBacklogCountUpdateInMemoryOnlyTestBacklogCountUpdateIn…TestDrainClearsBacklogBits · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestDrainClearsBacklogBitsTestDrainClearsBacklogBi…TestDrainShrinkLimitedReadWrite · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestDrainShrinkLimitedReadWriteTestDrainShrinkLimitedRe…TestDrainSkippedDuringBufferTime · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestDrainSkippedDuringBufferTimeTestDrainSkippedDuringBu…TestNoDrainWithBacklog · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestNoDrainWithBacklogTestNoDrainWithBacklogTestNoWriteWhenBacklogUnchanged · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestNoWriteWhenBacklogUnchangedTestNoWriteWhenBacklogUn…TestShadowModeSkipsDrain · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestShadowModeSkipsDrainTestShadowModeSkipsDrainFocused concept · compact8.go ×1 · 3 introduced LOCcompact8.go ×1

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 3 introduced LOC across 1 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/number/compact8.go 3 introduced LOC · 1 range

Open complete file

76 // it sticks to prev unless the new code is significantly closer. This prevents
77 // oscillation when the underlying value fluctuates near a bucket boundary.
78 > func UpdateCompact8(value int64, prev Compact8) Compact8 { compact8.go
79 > newCode := EncodeCompact8(value)
80 > if newCode == prev {
81 return prev
82 }