File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -186,16 +186,10 @@ protected virtual async ValueTask<ImmutableArray<TagHelperDescriptor>> ResolveTa
186
186
// Protected virtual for testing
187
187
protected virtual ImmutableArray < Checksum > ProduceChecksumsFromDelta ( ProjectId projectId , int lastResultId , TagHelperDeltaResult deltaResult )
188
188
{
189
- using var _ = StopwatchPool . GetPooledObject ( out var stopWatch ) ;
190
- stopWatch . Restart ( ) ;
191
-
192
- var fromCache = true ;
193
-
194
189
if ( ! _resultCache . TryGet ( projectId , lastResultId , out var checksums ) )
195
190
{
196
191
// We most likely haven't made a request to the server yet so there's no delta to apply
197
192
checksums = ImmutableArray < Checksum > . Empty ;
198
- fromCache = false ;
199
193
200
194
if ( deltaResult . IsDelta )
201
195
{
@@ -208,24 +202,13 @@ protected virtual ImmutableArray<Checksum> ProduceChecksumsFromDelta(ProjectId p
208
202
{
209
203
// Not a delta based response, we should treat it as a "refresh"
210
204
checksums = ImmutableArray < Checksum > . Empty ;
211
- fromCache = false ;
212
205
}
213
206
214
207
if ( deltaResult . ResultId != lastResultId )
215
208
{
216
209
// New results, lets build a coherent TagHelper collection and then cache it
217
210
checksums = deltaResult . Apply ( checksums ) ;
218
211
_resultCache . Set ( projectId , deltaResult . ResultId , checksums ) ;
219
- fromCache = false ;
220
- }
221
-
222
- stopWatch . Stop ( ) ;
223
- if ( fromCache )
224
- {
225
- _telemetryReporter . ReportEvent (
226
- "taghelpers.fromcache" ,
227
- Severity . Normal ,
228
- new Property ( "taghelper.cachedresult.ellapsedms" , stopWatch . ElapsedMilliseconds ) ) ;
229
212
}
230
213
231
214
return checksums ;
You can’t perform that action at this time.
0 commit comments