[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Experiment with threads - no concurrency?
From: |
Eli Zaretskii |
Subject: |
Re: Experiment with threads - no concurrency? |
Date: |
Mon, 06 Sep 2021 18:47:46 +0300 |
> From: Arthur Miller <arthur.miller@live.com>
> Date: Mon, 06 Sep 2021 16:35:04 +0200
>
> I did a little experiment today. I wanted to count frequency of Emacs
> functions
> usage. So I started by indexing all functions and macros.
>
> Since it is kind of lot's of I/O and independent tasks to do, I thought
> threads
> could come handy. However I see no difference from sequential code.
You shouldn't. Emacs doesn't switch threads on just any I/O, it
switches threads when it waits for input from subprocesses, network,
and keyboard.