Web Assembly in threejs for CAD

Lets say i want to make a simplified House CAD Software for example like this website:

What are examples of features where i Should be using C++ with web assembly instead of using vanilla javascript. I want to build a house cad software in the web, but i want to know where web assembly would be useful.

In the demofolder:
demo/simplify.html

import { MeshoptDecoder } from '../js/meshopt_decoder.module.js';
import { MeshoptSimplifier } from '../js/meshopt_simplifier.module.js';

Here a screenshot of the wasm code in js/meshopt_simplifier.module.js