Perf module

The perf module provides a set of methods to optimise the performance of your macro.

Import the module with:

import { perf } from 'ext';

Batch(callback: function) :

This method allows you to execute a batch of operations in a single macro execution.
The rendering is paused until the batch is completed.
Use this method to perform multiple rendering operations without refreshing the diagram on each instruction.

Arguments

  • function callback: The function to execute.

Returns

  • None.

Example

import { http, console } from 'lib';