compact8.go ×1

Frontier kind: Code frontier

unlabeled · c_8078ee464888

37 tests · 2 LOC · 1 file · introduces 0 tests · 2 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
1 range2 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1 range2 lines · 1 file · Browse complete extent
All tests (intent)
37 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 ×4TestEmitsGaugeMetrics · 0 introduced LOCTestEmitsGaugeMetricsTestPrivateStatePropagation · 0 introduced LOCTestPrivateStatePropagat…TestShadowModeSkipsDrain · 0 introduced LOCTestShadowModeSkipsDrainTestBacklogCountUpdateInMemoryOnly · 0 introduced LOCTestBacklogCountUpdateIn…TestShadowModeColdStartsScalerFromBaseline · 0 introduced LOCTestShadowModeColdStarts…TestShadowModeLogsOscillationFromBaseline · 0 introduced LOCTestShadowModeLogsOscill…TestCooldown · 0 introduced LOCTestCooldownscale_manager.go ×6 · 9 introduced LOCscale_manager.go ×6message.pb.go ×1 · 2 introduced LOCmessage.pb.go ×1TestShadowLoggingCadence · 0 introduced LOCTestShadowLoggingCadenceTestNoDrainWithBacklog · 0 introduced LOCTestNoDrainWithBacklogscale_manager.go ×1 · 2 introduced LOCscale_manager.go ×1TestNoWriteWhenBacklogUnchanged · 0 introduced LOCTestNoWriteWhenBacklogUn…scale_manager.go ×1 · 2 introduced LOCscale_manager.go ×1scale_manager.go ×1 · 5 introduced LOCscale_manager.go ×1scale_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 ×7scale_manager.go ×1 · 3 introduced LOCscale_manager.go ×1TestShadowDecisionDoesNotPersistOrPush · 0 introduced LOCTestShadowDecisionDoesNo…TestNonPositiveShadowLogIntervalDisabled, TestDecisionPersistsAndUpdatesEphemeralData · 0 introduced LOCTestNonPositiveShadowLog…TestNoChangeDecisionSkipsWrite · 0 introduced LOCTestNoChangeDecisionSkip…scale_manager.go ×2 · 4 introduced LOCscale_manager.go ×2scale_manager.go ×1 · 2 introduced LOCscale_manager.go ×1TestShadowModeReleasesManagedTargetToBaseline · 0 introduced LOCTestShadowModeReleasesMa…scale_manager.go ×2 · 10 introduced LOCscale_manager.go ×2TestShadowModeDoesNotLogDisabledScaler · 0 introduced LOCTestShadowModeDoesNotLog…scale_manager.go ×4 · 17 introduced LOCscale_manager.go ×4scale_manager.go ×2 · 7 introduced LOCscale_manager.go ×2scale_manager.go ×1 · 2 introduced LOCscale_manager.go ×1scale_manager.go ×1 · 4 introduced LOCscale_manager.go ×1scale_manager.go ×5 · 31 introduced LOCscale_manager.go ×5TestSameTargetAndCapSkipsWrite · 0 introduced LOCTestSameTargetAndCapSkip…tasks.pb.go ×1 · 11 introduced LOCtasks.pb.go ×1tasks.pb.go ×1 · 2 introduced LOCtasks.pb.go ×1user_data_manager_mock.go ×3 · 20 introduced LOCuser_data_manager_mock.g…TestAddedTasksWakesScalerOnFullBatch · 0 introduced LOCTestAddedTasksWakesScale…TestShadowModeDoesNotLogNoChange · 0 introduced LOCTestShadowModeDoesNotLog…scale_manager.go ×2 · 4 introduced LOCscale_manager.go ×2tasks.pb.go ×1 · 1 introduced LOCtasks.pb.go ×1scale_manager.go ×1 · 2 introduced LOCscale_manager.go ×1partition_scaler_mock.go ×3 · 42 introduced LOCpartition_scaler_mock.go…tasks.pb.go ×1 · 8 introduced LOCtasks.pb.go ×1simple_partition_scaler.go ×1 · 1 introduced LOCsimple_partition_scaler.…simple_partition_scaler.go ×1 · 2 introduced LOCsimple_partition_scaler.…simple_partition_scaler.go ×4 · 9 introduced LOCsimple_partition_scaler.…TestRoundDown · 0 introduced LOCTestRoundDownTestRoundtrip · 0 introduced LOCTestRoundtripTestUpdateZeroBoundary · 0 introduced LOCTestUpdateZeroBoundarycompact8.go ×1 · 1 introduced LOCcompact8.go ×1compact8.go ×1 · 2 introduced LOCcompact8.go ×1compact8.go ×2 · 10 introduced LOCcompact8.go ×2compact8.go ×1 · 2 introduced LOCcompact8.go ×1TestEncodeRoundsDown · 0 introduced LOCTestEncodeRoundsDownTestUpdateSameBucket · 0 introduced LOCTestUpdateSameBucketcompact8.go ×3 · 4 introduced LOCcompact8.go ×3compact8.go ×2 · 4 introduced LOCcompact8.go ×2compact8.go ×1 · 2 introduced LOCcompact8.go ×1compact8.go ×2 · 14 introduced LOCcompact8.go ×2compact8.go ×1 · 3 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/persistence/v1/tasks.pb.go · 870 LOCv1/tasks.pb.gogo.temporal.io/server/api/taskqueue/v1/message.pb.go · 1363 LOCv1/message.pb.gogo.temporal.io/server/common/metrics/tags.go · 619 LOCmetrics/tags.gogo.temporal.io/server/common/number/compact8.go · 98 LOCnumber/compact8.gogo.temporal.io/server/service/matching/partition_scaler_mock.go · 106 LOCmatching/partition_scale…go.temporal.io/server/service/matching/scale_manager.go · 476 LOCmatching/scale_manager.g…go.temporal.io/server/service/matching/scale_manager_mock.go · 55 LOCmatching/scale_manager_m…go.temporal.io/server/service/matching/simple_partition_scaler.go · 181 LOCmatching/simple_partitio…go.temporal.io/server/service/matching/user_data_manager_mock.go · 180 LOCmatching/user_data_manag…TestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestEncodeKnownValues · introduced test · go.temporal.io/server/common/number/TestCompact8Suite/TestEncodeKnownValuesTestEncodeKnownValuesTestEncodeRoundsDown · introduced test · go.temporal.io/server/common/number/TestCompact8Suite/TestEncodeRoundsDownTestEncodeRoundsDownTestRoundDown · introduced test · go.temporal.io/server/common/number/TestCompact8Suite/TestRoundDownTestRoundDownTestRoundtrip · introduced test · go.temporal.io/server/common/number/TestCompact8Suite/TestRoundtripTestRoundtripTestUpdateHysteresis · 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/TestUpdateZeroBoundaryTestUpdateZeroBoundaryTestOnTasksBacklogScalesUpAndDown · introduced test · go.temporal.io/server/service/matching/TestOnTasksBacklogScalesUpAndDownTestOnTasksBacklogScales…TestAddedTasksWakesScalerOnFullBatch · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestAddedTasksWakesScalerOnFullBatchTestAddedTasksWakesScale…TestBacklogCapChangePersists · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestBacklogCapChangePersistsTestBacklogCapChangePers…TestBacklogCountUpdateInMemoryOnly · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestBacklogCountUpdateInMemoryOnlyTestBacklogCountUpdateIn…TestCooldown · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestCooldownTestCooldownTestDBWriteFailureKeepsState · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestDBWriteFailureKeepsStateTestDBWriteFailureKeepsS…TestDecisionPersistsAndUpdatesEphemeralData · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestDecisionPersistsAndUpdatesEphemeralDataTestDecisionPersistsAndU…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…TestEmitsGaugeMetrics · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestEmitsGaugeMetricsTestEmitsGaugeMetricsTestNoChangeDecisionSkipsWrite · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestNoChangeDecisionSkipsWriteTestNoChangeDecisionSkip…TestNoDrainWithBacklog · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestNoDrainWithBacklogTestNoDrainWithBacklogTestNoWriteWhenBacklogUnchanged · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestNoWriteWhenBacklogUnchangedTestNoWriteWhenBacklogUn…TestNonPositiveShadowLogIntervalDisabled · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestNonPositiveShadowLogIntervalDisabledTestNonPositiveShadowLog…TestPeriodicTimerCallsScaler · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestPeriodicTimerCallsScalerTestPeriodicTimerCallsSc…TestPrivateStatePropagation · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestPrivateStatePropagationTestPrivateStatePropagat…TestSameTargetAndCapSkipsWrite · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestSameTargetAndCapSkipsWriteTestSameTargetAndCapSkip…TestShadowDecisionDoesNotPersistOrPush · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestShadowDecisionDoesNotPersistOrPushTestShadowDecisionDoesNo…TestShadowLoggingCadence · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestShadowLoggingCadenceTestShadowLoggingCadenceTestShadowModeColdStartsScalerFromBaseline · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestShadowModeColdStartsScalerFromBaselineTestShadowModeColdStarts…TestShadowModeDoesNotLogDisabledScaler · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestShadowModeDoesNotLogDisabledScalerTestShadowModeDoesNotLog…TestShadowModeDoesNotLogNoChange · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestShadowModeDoesNotLogNoChangeTestShadowModeDoesNotLog…TestShadowModeLogsOscillationFromBaseline · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestShadowModeLogsOscillationFromBaselineTestShadowModeLogsOscill…TestShadowModeReleasesManagedTargetToBaseline · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestShadowModeReleasesManagedTargetToBaselineTestShadowModeReleasesMa…TestShadowModeSkipsDrain · introduced test · go.temporal.io/server/service/matching/TestScaleManagerSuite/TestShadowModeSkipsDrainTestShadowModeSkipsDrainTestUpdateBacklogTargetClearsBelowReset · introduced test · go.temporal.io/server/service/matching/TestUpdateBacklogTargetClearsBelowResetTestUpdateBacklogTargetC…TestUpdateBacklogTargetHysteresis · introduced test · go.temporal.io/server/service/matching/TestUpdateBacklogTargetHysteresisTestUpdateBacklogTargetH…TestUpdateBacklogTargetSetsBitsAboveBase · introduced test · go.temporal.io/server/service/matching/TestUpdateBacklogTargetSetsBitsAboveBaseTestUpdateBacklogTargetS…Focused concept · compact8.go ×1 · 2 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: 2 introduced LOC across 1 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

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

Open complete file

34 // The value is rounded down to the nearest representable value.
35 // Negative values go to 0 and values above the maximum representable go to 255.
36 > func EncodeCompact8(value int64) Compact8 { compact8.go
37 > if value <= 0 {
38 return 0
39 }