DCSIMG
ביצועים - Dotmad (on .Net)

Dotmad (on .Net)

Just Another Web 5.0 Blog

Podcasts

Blogroll

Browse by Tags

All Tags » ביצועים (RSS)
NIH
The path to NIH...
Performance improvement from switching to Framework 2.0
The application I'm working on is a C4I, GIS based application, originally written in framework 1.1. Recently we did several tests to prove the improvements derived from upgrading to framework 2.0 (or 3.0) without doing major changes in the base code. The performance improvement focus was on switching to Generics for collections containing value types. Possible pitfalls - mostly the usage of Hashtable and other 1.1 collections, which tend to return NULL when the key is not found. Unlike them...
Consider your target audience
Jeff Atwood (CodingHorror) complained about the fact a caching addon for Wordpress is optional, and is not included in the basic software: Personally, I think it's absolutely irresponsible that WP-Cache like functionality isn't already built into WordPress. I would not even consider deploying WordPress anywhere without it. And why is that? This is an incredibly scary result; blog.stackoverflow.com is getting, at best, a moderate trickle of incoming traffic . It's barely linked anywhere...
.Net Performance pointers
After going this week to the Microsoft performance open house , here are few things to consider: Create performance counters of your own to measure various statistics. Try to avoid using interfaces and virtual methods to supports inlining . If you use a "Contains" method on a collection of structs, be sure to override the "Equals" method, since the default Object.Eqauls method used boxing twice - once for the parameter and the once for " this ". Similarly, you should...
Random.NextBytes Performance Issues
בעיות ביצועים עם מחלקת Random I have became aware recently to a performance problem with the Random class, specifically the Random. NextBytes method. As it turns out this is an expansive operation: The graph displays the number of milliseconds used to perform 10,000,000 operations. The NextBytes method handle a byte array containing only 4 bytes. This is linear - using an array of 4000 bytes will take 1000 times longer to complete the operation! However, there may be a work-around using the BitConverter...
עלות/תועלת בשיפור ביצועים
תוך כדי כתיבת ה תגובה לפוסט של אודי נתקלתי ב פוסט של גדי על הרושם שלו מההרצאה, ובשרשרת התגובות שהתפתחה בנושא של אופטימיזציה לאפליקציות קריטיות מבחינת יישומים. הטענה של גדי הייתה שאם משתמשים במלוא השירותים שWCF מציע התקורה על פני שימוש במחלקות קלאסיות אינה גבוהה, לכן כדאי להשתמש בפיתרון הנ"ל: "המטרה של מפתח היא לפתור בעיה. אם המתח מצליח לכתוב קוד שפותר את הבעיה בזמן נאות (ונאות זו מילת המפתח כאן), הוא השיג את המטרה. אם הביצועים מספיקים למערכת, ואם זמן התגובה נאות (ושוב נאות זו מילת המפתח...
כמה זיכרון תופסת האפליקציה שלך?
לצערי אני עדיין נתקל בלא מעט אנשים המשתמשים ב Task manager בתור כלי למדידת פרמטרים של ביצועים, ואפילו משתמשים בו לא נכון. העמודה הקרוייה "Mem Usage" אינה מייצגת את מלוא צריכת הזיכרון של האפליקציה, אלא את הזיכרון המוקצה לה ברגע נתון , ויכול להשתנות בהתאם לשימוש במשאבי זיכרון משותפים עם אפליקציות אחרות. דוגמה פשוטה תוכלו לראות אם תיצרו פרוייקט חדש מסוג Windows application עם טופס בודד, תריצו אותו ותבצעו Minimize. רואים איך הערך משתנה? העמודה הרלוונטית יותר לצריכת זיכרון נקראת "VM size"...