I’m using the plugin concept in golang in my project. ( go build -buildmode=plugin )
for one plugin to compile to .so file it is taking average time of 15 seconds.
If i want to convert three to four plugins it is taking almost 45 seconds.
Is there any way to reduce this time of compilation to .so files
any alternate way to compile faster
atleast can reduce the time of multiple plugins( i.e can i run all the plugins parallely so that the idle time will be 15 seconds always)
This is the command i use in a loop , that iterates in a List and and executes the same command :
**go build -buildmode=plugin -o "classes/"+List[i]+".so "+ "classes/" + List[i].action + ".go"**