Похожие чаты

Which one compiles faster? and why?

7 ответов

3 просмотра

Both compile just as fast.

compiles or run ?

loops are nothing but jmp instructions but in this case for loop with a condition and inc ... B has less job to do but with these operations you will not see much diff in performance but verry little

B has more operations to do. also maybe len in check must be 1024 - 3 and because code don't have any effective purpose so compiler on -O3 makes it nothing

second

The first technically

I think their compilation times are equal. Consider this example: a loop just repeats the code while the condition is still true. So cout << 1; cout << 2; cout << 3; ... as much as you want for (int i = 1; i <= as_much_as_you_want; ++i) cout << i; and for (something like B) { ... } Will give the same result. I think the compiler is smart enough to optimize this.

Похожие вопросы

Обсуждают сегодня

For managing user-generated content rights in gaming? 🤯🚀
Brian
37
Do we have a Chinese community here?
迪迦
20
@Aiwan что такое база образца?
Alexey
27
Why binance delisting the token?
🅰🅽🅳🆁🅴🆆
14
Не многие знают, а кто знает, тот уже успел забыть, что в далёком 2004 году эта игра произвела настоящий фурор, настолько революционной была технология, применяемая для её соз...
ICCID
4
Короче я тут узнал полный пиздец Что кучу постов которые я создавал через posted Спустя время не могу редактировать и менять Мол телега возвращае ошибку Это реально так ...
inc.
13
Hi is Atomic wallet safe to exchange btc to xmr?
Regex
20
коллеги, добрый вечер! А никто не знает как модальная форма может себя закрыть? Ну допустим модальная форма определила, что смысла ей работать нет и хочет вернуть modalResult...
Михаил
83
I have LUSD tokens but they haven't pegged back to a dollar. Is there a reason why?
Harry the Hexican
14
Is UniBright Freequity an active live product ? A friend here in Asia was discussing the Tokenisation of RWA’s in his case Real Estate as he’s a developer with numerous overs...
Digital Trust
5
Карта сайта