I love D
H. S. Teoh
hsteoh at qfbox.info
Wed Sep 20 23:01:11 UTC 2023
On Tue, Sep 19, 2023 at 04:34:30AM +0000, Vitaliy Fadeev via Digitalmars-d wrote:
> Just know this.
Me too!
One of my favorite parts:
// Slow
auto myData = iota(1_000_000).array;
foreach (data; myData) {
doSomething(data);
}
// Instant speedup:
auto myData = iota(1_000_000).array;
foreach (data; myData.parallel) {
doSomething(data);
}
D r0x0rs!
No, D boulders! :-D
T
--
Старый друг лучше новых двух.
More information about the Digitalmars-d
mailing list