F
frank.meulblok
Guest
STATIC classes (or rather, the STATIC members of a class type) are loaded into memory only once, and stay there for the lifetime of the process. The garbage collector won't touch them, that only handles object instances. Statics apply to the class type. The main side effects of the implementation are that: a) You need to restart the process for changes to static members to take effect. This is mostly a pain during development, there's steps you can take in production to minimize downtime. b) If you have a lot of static members, your minimum memory requirements may increase.
Continue reading...
Continue reading...