[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Looping through an array with FOR EACH
[Thread Prev] | [Thread Next]
- Subject: Re: Looping through an array with FOR EACH
- From: Gianluigi <gradobag@xxxxxxxxxxx>
- Date: Fri, 16 Jan 2026 00:39:52 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Il 16/01/26 00:27, Benoît Minisini ha scritto:
Better for what?"For Each" on an array is usually slower than using a "For...To" loop with an index variable, except if you don't need the index. Check by yourself anyway according to what you need exactly.And the JIT compiler do not optimize the "For Each" loop. Otherwise it's not important how you browse the array.
Dear Benoit, Thank you for the explanation and my apologies again. As Brian wrote, a big thank you for the beautiful code you gave us. With Best Regards Gianluigi
| Looping through an array with FOR EACH | Gianluigi <gradobag@xxxxxxxxxxx> |
| Re: Looping through an array with FOR EACH | BB <adamnt42@xxxxxxxxx> |
| Re: Looping through an array with FOR EACH | Gianluigi <gradobag@xxxxxxxxxxx> |
| Re: Looping through an array with FOR EACH | Brian G <brian@xxxxxxxxxxxxxxxx> |
| Re: Looping through an array with FOR EACH | Gianluigi <gradobag@xxxxxxxxxxx> |
| Re: Looping through an array with FOR EACH | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| Re: Looping through an array with FOR EACH | Gianluigi <gradobag@xxxxxxxxxxx> |
| Re: Looping through an array with FOR EACH | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |