TAILIEUCHUNG - Lập trình .net 4.0 và visual studio 2010 part 61

ứng dụng Silverlight có thể được giảm kích thước bằng cách sử dụng một tính năng mới gọi là lắp ráp bộ nhớ đệm. Khi lắp ráp bộ nhớ đệm được bật, cốt lõi. Cụm NET được sử dụng bởi ứng dụng của bạn sẽ không được bao gồm trong tập tin Xap rằng Silverlight sẽ được tải về bởi máy khách. Nếu khách hàng không có các hội đồng trên máy tính của họ, sau đó họ sẽ được tải về trực tiếp từ Microsoft | CHAPTER 15 WPF AND SILVERLIGHT Performance Microsoft has been hard at work tweaking Silverlight s performance. Let s look at what has changed. Binary XML Support Silverlight has support for Binary XML allowing you to communicate with WCF binary XML endpoints. Binary XML format is much smaller than regular XML and results in less data being transferred over the network and ultimately better performance for your applications. Enhanced Deep Zoom performance DeepZoom is now much quicker than ever before not that it was slow before . Improved XAP Compression XAP files are now compressed more efficiently and Microsoft says you should see a 10-30 percent decrease in size compared with previous versions. The JavaScript file in Silverlight is compressed and is now just 7k in size previous versions were 57k . To obtain the uncompressed version go to http silverlightjs . Assembly Caching Silverlight applications can be reduced in size by utilizing a new feature called assembly caching. When assembly caching is turned on core .NET assemblies used by your app will not be included in the Silverlight XAP file that is downloaded by the client. If clients don t have these assemblies on their machine then they will be downloaded directly from Microsoft. Enabling assembly caching is very easy 1. Open the Properties dialog of the Silverlight project 2. Check the Reduce XAP size by using application library caching check box see Figure 15-32 . 3. Recompile your Silverlight application and you re done. CAUTION Cached assemblies will be cleared if the browser cache is cleared. 403 CHAPTER 15 WPF AND SILVERLIGHT Figure 15-32. Enabling cached assemblies GPU Acceleration Silverlight allows you to shift resource-intensive tasks such as clipping and transformations to the GPU. GPU acceleration must first be enabled at the application level. 1. Open and add the following .

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.