unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Arthur Miller <arthur.miller@live.com>
Cc: emacs-devel@gnu.org
Subject: Re: Experiment with threads - no concurrency?
Date: Mon, 06 Sep 2021 18:47:46 +0300	[thread overview]
Message-ID: <83wnntr9i5.fsf@gnu.org> (raw)
In-Reply-To: <DB9PR09MB49869F3C6FF713AF87B21C4496D29@DB9PR09MB4986.eurprd09.prod.outlook.com> (message from Arthur Miller on Mon, 06 Sep 2021 16:35:04 +0200)

> 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.



  parent reply	other threads:[~2021-09-06 15:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-06 14:35 Experiment with threads - no concurrency? Arthur Miller
2021-09-06 15:17 ` Stefan Monnier
2021-09-06 16:35   ` Arthur Miller
2021-09-06 17:31     ` Eli Zaretskii
2021-09-06 17:38   ` T.V Raman
2021-09-06 18:11     ` Arthur Miller
2021-09-06 15:47 ` Eli Zaretskii [this message]
2021-09-06 16:40   ` Arthur Miller
2021-09-06 17:33     ` Eli Zaretskii
2021-09-06 18:10       ` Arthur Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83wnntr9i5.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=arthur.miller@live.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).