Huge difference in code size between arduino and platfomio build

When I use LinkedList code size is :
text data bss dec hex filename
71604 3248 3120 77972 13094 .pioenvs/maple_mini_origin/firmware.elf

where as in arduino it is only 15716. Please explain why the difference and how to reduce.


LinkedList<int> i;

void setup(){


void loop(){

Can anyone confirm if they experience the same. New to pio and not getting enough confidence to use it if binary size generated is so much.

I am compiling for stm32 maple mini