Javascript script instancing

Hello,
I’m curious how Unity/Mono handles instancing of Javascripts in terms of memory and performance.

Is it better to create a “stub” script as a component for game objects that calls functions a single, global script that implements the logic, or is it okay to have a large script with lots of functions attached to each object?

In other words, does Unity/Mono actually create a full instance of the script per game object? Or does it only instance the variables and reuse the code?

Thanks,
Brett

A script actually defines a class. For each instance of the class, only the instance variables are allocated any memory - the code is shared.

Just what I wanted to hear! Thanks!