I'm using an external library called Frappe Gantt to render a Gantt diagram in my angular app.
I've included the required JS script and CSS file under the script and style sections in project.json (Nx equivalent of angular.json).
Also I'm making sure I'm running the required code for creating the diagram with ngZone.runOutsideAngular().
However, while the standalone Gantt app with 4000 mock tasks runs in about 200ms, the angular app with the exact same mock data required 1000ms. It's definitely slower and the same applies to other library functions like changing date periods (weeks, months, years).
Is there anything about Angular optimization that I'm missing? Running nx serve --prod didn't make a difference either.