I am trying to figure out what affects the compiled size of my Silverlight application build. Obviously, I want to reduce the size of my application, and the most obvious way to do this is to get rid of some of my constant lines (for example, error lines - there are no images in the application or other resource-intensive objects). Then I will pull the lines from the server on demand. Before I begin this work, I want to find out what the approximate saving of space will be.
How much memory does the compiled constant execute in the compiled DLL? I assume that it is stored as a UNICODE UTF-16 character array and therefore there will be 2 bytes per character? It's right? Is there a thumb rule (or a stricter rule for calculating how many compressions can be performed in a line for zip compression, which is used to create the final .xap file?
EDIT. Obviously, some confusion is caused by the way I asked this question. I am not talking about the "amount of memory" as "the amount of memory consumed by the application," but about the size of the "dll" and, therefore, the xap file being created.
source share