barrels and memory

is barrel code/data consumes main app memory or it run like external DLL/API so I can move some utils function to barrel and save main app memory?