Just algorithm!
Fast-Member

ปกติผมใช้ Reflection ประจำ แต่ก็ไม่เคยรู้ว่ามันช้า
จนได้มาเจอ library ชื่อ fast-member

ซึ่งไอ้ library นี้ ใช้วิธี Emit สร้าง dynamic method มา set property เลยทีเดียว
และเจ้าของ library ก็ได้ทดสอบเขียน property 1 ล้านครั้ง
ซึ่ง PropertyInfo ใช้เวลาถึง 8,879 ms
ในขณะที่ fast-member ใช้เวลาเพียง 73 ms
เร็วกว่ากันเป็น 100 เท่า!!!

สนใจเชิญไปใช้ฟรีครับ ที่นี่




Create Date : 12 ธันวาคม 2556
Last Update : 12 ธันวาคม 2556 8:28:08 น. 0 comments
Counter : 1174 Pageviews.

ชื่อ :
Comment :
  *ใช้ code html ตกแต่งข้อความได้เฉพาะสมาชิก
 

chaowman
Location :
กรุงเทพฯ Thailand

[Profile ทั้งหมด]

ฝากข้อความหลังไมค์
Rss Feed
Smember
ผู้ติดตามบล็อก : 8 คน [?]





New Comments
Group Blog
 
All Blogs
 
Friends' blogs
[Add chaowman's blog to your web]
Links
 

 Pantip.com | PantipMarket.com | Pantown.com | © 2004 BlogGang.com allrights reserved.