Skip to content

Commit

Permalink
fix(formula): calculate performance
Browse files Browse the repository at this point in the history
  • Loading branch information
Dushusir committed Oct 21, 2024
1 parent 5385ee6 commit 50dc1d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ export interface ISetFormulaCalculationNotificationMutation {
export const SetFormulaCalculationNotificationMutation: IMutation<ISetFormulaCalculationNotificationMutation> = {
id: 'formula.mutation.set-formula-calculation-notification',
type: CommandType.MUTATION,
handler: () => {
return true;
},
handler: () => true,
};

export interface ISetFormulaCalculationResultMutation {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,6 @@ export class TriggerCalculationController extends Disposable {

this._commandService.executeCommand(SetFormulaCalculationStartMutation.id, { ...this._executingDirtyData }, lo);

this._startExecutionTime = performance.now();

this._waitingCommandQueue = [];
}, 100);
})
Expand Down Expand Up @@ -341,6 +339,8 @@ export class TriggerCalculationController extends Disposable {
const { startCalculate, formulaCount } = command.params as ISetFormulaCalculationNotificationMutation;

if (startCalculate) {
this._startExecutionTime = performance.now();

// Increment the calculation process count and assign a new ID
calculationProcessCount++;

Expand Down

0 comments on commit 50dc1d2

Please sign in to comment.