On Friday, 30 July 2021 at 14:41:06 UTC, Daniel Kozak wrote:
I have rewrite it to be same as dart version
Thanks! There're both generator version and fiber version on the
site(if possible), the 2 versions are not really comparable to
each other (generator solutions should be much faster). The
On Wed, Jul 28, 2021 at 11:41 PM hanabi1224 via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> On Wednesday, 28 July 2021 at 16:26:49 UTC, drug wrote:
> > I profiled the provided example (not `FiberScheduler`) using
> > perf. Both dmd and ldc2 gave the same result - `void
> > fi
On Wednesday, 28 July 2021 at 16:26:49 UTC, drug wrote:
I profiled the provided example (not `FiberScheduler`) using
perf. Both dmd and ldc2 gave the same result - `void
filterInner(int, int)` took ~90% of the run time. The time was
divided between:
`int std.concurrency.receiveOnly!(in
On Wednesday, 28 July 2021 at 16:31:49 UTC, Ali Çehreli wrote:
I assume the opposite because normally, the number of times a
thread or fiber is spawned is nothing compared to the number of
times they are context-switched. So, spawning can be expensive
and nobody would realize as long as switchi
On Wednesday, 28 July 2021 at 14:39:29 UTC, Mathias LANG wrote:
Hence doing:
```diff
- auto scheduler = new FiberScheduler();
+ scheduler = new FiberScheduler();
```
Thanks for pointing it out! Looks like I was benchmarking thread
instead of fiber. I just made the change you suggest but the
r
On 7/28/21 1:15 AM, hanabi1224 wrote:
> On Wednesday, 28 July 2021 at 01:12:16 UTC, Denis Feklushkin wrote:
>> Spawning fiber is expensive
>
> Sorry but I cannot agree with the logic behind this statement, the whole
> point of using fiber is that, spwaning system thread is expensive, thus
> ppl c
28.07.2021 17:39, Mathias LANG пишет:
On Wednesday, 21 July 2021 at 22:51:38 UTC, hanabi1224 wrote:
Hi, I'm new to D lang and encounter some performance issues with
fiber, not sure if there's something obviously wrong with my code.
I took a quick look, and the first problem I saw was that you
On Wednesday, 21 July 2021 at 22:51:38 UTC, hanabi1224 wrote:
Hi, I'm new to D lang and encounter some performance issues
with fiber, not sure if there's something obviously wrong with
my code.
I took a quick look, and the first problem I saw was that you
were using `spawnLinked` but not repl
On 7/27/21 9:12 PM, Denis Feklushkin wrote:
Spawning fiber is expensive (but not so expensive as spawning thread, of
course), but switching is fast.
Thus, you can spawn and pause "workers" fibers for avaiting of jobs.
(Probably, this behaviour is already implemented in number of libraries
and
On Wednesday, 28 July 2021 at 01:12:16 UTC, Denis Feklushkin
wrote:
Spawning fiber is expensive
Sorry but I cannot agree with the logic behind this statement,
the whole point of using fiber is that, spwaning system thread is
expensive, thus ppl create lightweight thread 'fiber', then if a
'f
On Monday, 26 July 2021 at 12:09:07 UTC, hanabi1224 wrote:
Thank you for your response! I've got some questions tho.
On Saturday, 24 July 2021 at 09:17:47 UTC, Stefan Koch wrote:
It will not use a fiber pool.
Why fiber pool? Isn't fiber a lightweight logical thread which
is already implemen
On Monday, 26 July 2021 at 15:27:48 UTC, russhy wrote:
```
build:
```
dub build --compiler=ldc -brelease --single primesv1.d
```
-brelease is a typo issue, i don't think that produce defired
effect, most likely it defaulted to debug build
it should be -b release
No, it builds a release
```
build:
```
dub build --compiler=ldc -brelease --single primesv1.d
```
-brelease is a typo issue, i don't think that produce defired
effect, most likely it defaulted to debug build
it should be -b release
Thank you for your response! I've got some questions tho.
On Saturday, 24 July 2021 at 09:17:47 UTC, Stefan Koch wrote:
It will not use a fiber pool.
Why fiber pool? Isn't fiber a lightweight logical thread which is
already implemented with thread pool internally?
Spawning a new fiber is e
On Saturday, 24 July 2021 at 09:17:47 UTC, Stefan Koch wrote:
On Wednesday, 21 July 2021 at 22:51:38 UTC, hanabi1224 wrote:
Hi, I'm new to D lang and encounter some performance issues
with fiber, not sure if there's something obviously wrong with
my code.
There is your problem.
auto sc
On Wednesday, 21 July 2021 at 22:51:38 UTC, hanabi1224 wrote:
Hi, I'm new to D lang and encounter some performance issues
with fiber, not sure if there's something obviously wrong with
my code.
There is your problem.
auto scheduler = new FiberScheduler;
The Fiber scheduler will spawn
On Wednesday, 21 July 2021 at 22:51:38 UTC, hanabi1224 wrote:
Hi, I'm new to D lang and encounter some performance issues
with fiber, not sure if there's something obviously wrong with
my code.
[...]
Following.
I am also in need of more information to increase speed of D
binaries using par
Hi, I'm new to D lang and encounter some performance issues with
fiber, not sure if there's something obviously wrong with my code.
Basically, I found D lang's logical thread communication is quite
like Elixir's (process),
I have programs written in both D and Elixir but the D version
(release
18 matches
Mail list logo