mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-20 01:25:37 -05:00
Adding caching to execution plan and refactoring code and some other fixes (#18913)
* Making ep code modular for easy swithcing in and out * Changing to innerText * Fixing renames * Fixing var name in one file
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { ExecutionPlanFileView } from 'sql/workbench/contrib/executionPlan/browser/executionPlanFileView';
|
||||
|
||||
export class ExecutionPlanFileViewCache {
|
||||
private static instance: ExecutionPlanFileViewCache;
|
||||
|
||||
public executionPlanFileViewMap: Map<string, ExecutionPlanFileView> = new Map();
|
||||
|
||||
private constructor() { }
|
||||
|
||||
public static getInstance(): ExecutionPlanFileViewCache {
|
||||
if (!ExecutionPlanFileViewCache.instance) {
|
||||
ExecutionPlanFileViewCache.instance = new ExecutionPlanFileViewCache();
|
||||
}
|
||||
|
||||
return ExecutionPlanFileViewCache.instance;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user