Похожие чаты

What blog? Can you share a link?

17 ответов

34 просмотра

https://plainenglish.io/blog/are-for-loops-better-than-arrays-filter-or-foreach-methods

Shayan- Автор вопроса
Mr Thieves
https://plainenglish.io/blog/are-for-loops-better-...

Your overall application may become faster by a really tiny fraction (definitely not noticeable to the end-user) when using for loops, but the trade-off is readability and maintainability of the code, at least in my opinion (it’s also mentioned on the blog). Anyway, as others have said, it doesn’t really matter in real world, so use whichever one you’re more comfortable with.

Mr Thieves
https://plainenglish.io/blog/are-for-loops-better-...

Would while, do_while loops stand a chance Someone also did a comparison for switch, if and object access In the end am sure you would only be confined to a minute feature set of javascript or any language for that matter

Richard | If you DM for support you PAY
Would while, do_while loops stand a chance Someo...

i don't care about performance since it's very very very very very small on small project with less than 100 data i want to handle.

A bundler would be well suited for this kind of optimisation, give some rope to those that would be maintaining the code

Mr Thieves
i don't care about performance since it's very ver...

For small data sets, you can actually cache on client side and do most of the calculations there. Appollo graphql already does this under the hood

Richard | If you DM for support you PAY
A bundler would be well suited for this kind of op...

There are sensible optimisations that humans can do that are hard for tools to do (today). Like using for loops over functions.

Thomas
They would stand a chance, yes

They are both slower than for loops

Thomas
They should be the same speed

If 'if' is faster than 'switch' am sure they are different, could write the benchmarking code but currently constrained of time

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

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

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта