Raised This Month: $ Target: $400
 0% 

Optimizing Plugins: Cache Results on a Larger Scale?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
stupok
Veteran Member
Join Date: Feb 2006
Old 03-19-2009 , 23:40   Re: Optimizing Plugins: Cache Results on a Larger Scale?
Reply With Quote #6

If I'm doing the calculations correctly...

FM_PlayerPreThink:
The optimized version is 14.38 times faster overall than the normal version.

Normal version spends an average of 24.54 microseconds per call.
Optimized version spends an average of 1.71 microseconds per call.

FM_AddToFullPack:
The optimized version is 8.04 times faster overall than the normal version.

Normal version spends an average of 8.37 microseconds per call.
Optimized version spends an average of 1.04 microseconds per call.

So, this technique reduces the time spent by roughly one order of magnitude.

I love to see this kind of data ^___________________^. Thanks, MeRcyLeZZ!

In the end, we're dealing with microseconds. How noticeable will this optimization be for the end user?
__________________
stupok is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode