@@ -18,7 +18,7 @@ import type {
18
18
} from "../../log-insights/performance-comparison" ;
19
19
import { formatDecimal } from "../../common/number" ;
20
20
import { styled } from "styled-components" ;
21
- import { Codicon , ViewTitle , WarningBox } from "../common" ;
21
+ import { Codicon , ViewTitle } from "../common" ;
22
22
import { abbreviateRANames , abbreviateRASteps } from "./RAPrettyPrinter" ;
23
23
import { Renaming , RenamingInput } from "./RenamingInput" ;
24
24
@@ -560,7 +560,7 @@ function ComparePerformanceWithData(props: {
560
560
561
561
const comparison = data ?. comparison ;
562
562
563
- const [ hideCacheHits , setHideCacheHits ] = useState ( false ) ;
563
+ const [ hideCacheHits , setHideCacheHits ] = useState ( true ) ;
564
564
565
565
const [ sortOrder , setSortOrder ] = useState < "delta" | "absDelta" > ( "absDelta" ) ;
566
566
@@ -686,23 +686,14 @@ function ComparePerformanceWithData(props: {
686
686
< >
687
687
< ViewTitle > Performance comparison</ ViewTitle >
688
688
{ comparison && hasCacheHitMismatch . current && (
689
- < WarningBox >
690
- < strong > Inconsistent cache hits</ strong >
691
- < br />
692
- Some predicates had a cache hit on one side but not the other. For
693
- more accurate results, try running the{ " " }
694
- < strong > CodeQL: Clear Cache</ strong > command before each query.
695
- < br />
696
- < br />
697
- < label >
698
- < input
699
- type = "checkbox"
700
- checked = { hideCacheHits }
701
- onChange = { ( ) => setHideCacheHits ( ! hideCacheHits ) }
702
- />
703
- Hide predicates with cache hits
704
- </ label >
705
- </ WarningBox >
689
+ < label >
690
+ < input
691
+ type = "checkbox"
692
+ checked = { hideCacheHits }
693
+ onChange = { ( ) => setHideCacheHits ( ! hideCacheHits ) }
694
+ />
695
+ Hide differences due to cache hits
696
+ </ label >
706
697
) }
707
698
< RenamingInput renamings = { renamings } setRenamings = { setRenamings } />
708
699
Compare{ " " }
0 commit comments