format or formatex.
What is better to use? :|
|
Re: format or formatex.
Depends on your usage.
formatex doesn't have a copyback check, so you can't do: Code:
|
Re: format or formatex.
Hmmm... thanks.
|
Re: format or formatex.
Wiki says :
Quote:
|
Re: format or formatex.
Quote:
I'm missing something: __ there is an ultra high-speed version of format() called formatex() It should be noted that will behave the same as if it detects that there will be no copy-back needed. However, formatex() does not check this, and thus is slightly faster for situations where the coder is sure of its usage. __ So: it doesn't work if there is copy-back needed, and is only slightly faster if there isn't. So when it is ultra faster? |
Re: format or formatex.
It's ultra-faster than if you use amxx1.60 for example.
When format native wasn't checking if a copy-back wasn't needed. Of formatex is ultra faster than format with a copy-back, but in that case you couldn't use formatex. |
Re: format or formatex.
Quote:
If there is no copyback needed it will be slightly faster, if there is it will not work. So it is never ultrafaster. |
Re: format or formatex.
It's ultralower when you are forced to use format because you need a copy-back.
|
Re: format or formatex.
Quote:
|
Re: format or formatex.
So, the answer is never, it's only a new native since 1.70
|
| All times are GMT -4. The time now is 17:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.