SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Tutorials

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 06/07/2016, 02:33 PM   #20
Join Date: Jun 2012
Location: India
Posts: 882
Reputation: 317
Default Re: Creative & smart scripting techniques - improve performance & readablity in one go

Probably misinterpretation once again.

In the topic I was talking about using memcpy vs assiging everything manually. Memcpy is nearly 50x+ (depends on the array and size) faster than assigning values manually. Also, its more neat and readable.

That performance improvement is significant especially when you have large arrays/enum arrays. It is a WIN-WIN scenario (readability + performance)!

Somebody asked if using memcpy was faster than assigning an array directly and I just gave an explanation.
Yashas is offline   Reply With Quote

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for someone creative jameskmonger Everything and Nothing 15 16/08/2012 09:55 AM
How to improve performance[Windows XP/Vista/7] Kalroz Everything and Nothing 10 29/07/2012 06:28 AM
Do you guys know how you can improve lag - shooting..I want to improve. SpezzyBreeze General 9 26/12/2011 04:23 PM

All times are GMT. The time now is 03:44 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.