没有合适的资源?快使用搜索试试~ 我知道了~
更快开发ASP.NET程序的25个秘密
需积分: 9 33 下载量 46 浏览量
2013-08-15
20:20:46
上传
评论
收藏 1.44MB PDF 举报
温馨提示
试读
38页
1 Want to build scalable websites and services Work asynchronously 2 Want to build scalable websites and services Work asynchronously
资源推荐
资源详情
资源评论
1
2
JEFFREY RICHTER
JOHN ROBBINS
DAVID CONLIN
SHMUEL ENGLARD
RYAN RILEY
CHRIS ALLEN
ROBERT HAKEN
MITCHEL SELLERS
NIALL MERRIGAN
CHRIS HURLEY
RAGHAVENDRA
MATT LEE
JP TOTO
MICHAEL WILLIAMSON
TIAGO PASCOAL
Foreword
When we launched the predecessor to this
book, 50 Ways to Avoid, Find and Fix ASP.NET
Performance Issues, we had no idea what a hit it
would be. More than 15,000 of you have got a
copy, it’s been featured on www.asp.net, and it
took Twitter by storm.
Rising adoption of MVC 4 and Web API means
more new chances for performance improvements
than you can shake a stick at, so this book adds
(among other things) a stful of new tips for those
technologies, all from members of the ASP.NET
community. I’d like to thank them all for their
excellent contributions.
Last time, I said that between us we could make
ASP.NET applications run faster than Usain Bolt
with cheetahs for shoes. We’re not quite there yet,
but I hope all of you nd a few tips more here to put
a gazelle-like spring in your applications’ step.
Michaela Murray
dotnetteam@red-gate.com
4 PB4
Contents
Foreword 3
Want to build scalable websites and services?
Work asynchronously 6
Where are your custom performance counters? 7
RavenDB 8
Don’t call AsEnumerable on a collection before
using LINQ 9
Never call .Wait() or .Result on a Task 10
Throwing HttpResponseExceptions 11
Web API tracing 12
Message Handlers 13
Database access 14
When you’re proling, prefer accuracy to detail 15
Make the most of connection pooling by closing
SQLConnection as soon as possible 16
OutputCache 17
Use CongureAwait to avoid thread hopping,
especially in library code 18
Be careful of variable allocations 20
5
How to stress test your public facing web
application using the cloud (or without it) 22
Using the keyword await doesn’t make the
work asynchronous 24
Don’t use async/await for short methods 25
Turn off Change Tracking in Entity Framework 26
Always use compiled queries in Entity Framework 27
Diagnosing JavaScript memory leaks with Chrome
Dev tools 28
Monitoring memory consumption over time 30
Use JValue in JSON.Net to parse complex JSON
objects that you don’t have POCO types for 32
Cache JavaScript and CSS permanently 34
Load external JavaScript content asynchronously 35
Prole, don’t speculate! 36
More free eBooks from Red Gate 37
Tools from Red Gate 38
剩余37页未读,继续阅读
资源评论
DoomLord
- 粉丝: 114
- 资源: 1319
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功