M
Morgan Cheng
Hi,
I once worked for java in embedded system. Since the memory is limited
in embedded system, there are some guidelines for programming. One of
them is "Don't create too many classes, because each class takes up at
least 200 bytes". The 200 bytes are byte-code, not size of a class
instance.
Since Java and C# is so similar, I am wandering how many bytes will it
take for a C# class after compiled into IL code. If it also consumes
memory, should we avoid creating too many classes?
Thanks,
-Morgan
I once worked for java in embedded system. Since the memory is limited
in embedded system, there are some guidelines for programming. One of
them is "Don't create too many classes, because each class takes up at
least 200 bytes". The 200 bytes are byte-code, not size of a class
instance.
Since Java and C# is so similar, I am wandering how many bytes will it
take for a C# class after compiled into IL code. If it also consumes
memory, should we avoid creating too many classes?
Thanks,
-Morgan