且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在ASP.NET中压缩.cs代码

更新时间:2023-11-24 16:26:34

引用:

当我搜索时,有一个解决方案GZIP压缩。

When I Was searching there is one solution GZIP compression.



ZIP用于减小文件大小在存储上,永远不会改善运行时。更糟糕的是,在能够运行之前解压缩文件需要一些时间。


ZIP is use to reduce the file size on storage and will never improve runtime. Worse, it take some time to decompress the file before being able to run it.

Quote:

如何压缩我在C#asp.net中使用.cs代码来提高页面性能请告诉我。

How to compress my .cs code in C# asp.net to make page performance is good please tell me.



压缩是错误的单词,正确的单词是优化

优化代码更多地是关于代码中使用的算法。每个优化都针对1个程序文件,唯一的一般规则是选择聪明的算法。

分析(计算机编程) - *** [ ^ ]

性能分析工具列表 - *** [ ^ ]

代码分析器如何工作? - Stack Overflow [ ^ ]


Compress is the wrong word, the correct word is optimize
Optimizing your code is more about algorithm used in your code. Each optimizing is specific to 1 program file, the only general rule is to choose clever algorithms.
Profiling (computer programming) - Wikipedia[^]
List of performance analysis tools - Wikipedia[^]
How do code profilers work? - Stack Overflow[^]