如何在ASP.NET中压缩.cs代码 [英] How to compress .cs code in ASP.NET

查看:96
本文介绍了如何在ASP.NET中压缩.cs代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



我尝试了什么:



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

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

What I have tried:

When I Was searching there is one solution GZIP compression.

推荐答案

引用:

当我搜索时,有一个解决方案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[^]


这篇关于如何在ASP.NET中压缩.cs代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆