JUCE audio plugin optimizations

Hello everybody
I’m creating my first audio plugin on JUCE, so I decided to use a step by step approach.
Based upon the Projucer template, I created an audio VST plugin with a Processor and an Editor and a Standalone application. My goal is to build it for Linux, in order to deploy it on Zynthian as a headless plugin, so I enabled LV2 plugin too.
In such a way:

  • I developed and tested a first release of the plugin on windows
  • I’m using an exporter for Linux to use in WSL and doing some intermediate checks, on windows
  • I’m using another exporter for Linux to build it on RP machine

My plugin basicly perform a FFT and some minor operations on it (thus code is very poor).
For the sake of simplicity, I “removed” my Editor class, replacing it with a Generic one.

I noticed two things:

  • my plugin so is about 50-60MB, is there a way to reduce it? compile time flags, linker hints, …
  • since LV2 version has to run in a headless environment, can I use some precompilation flags to tell the LV2 plugin to exclude the GUI from it?

Thank you in advance

Sergio