[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Concurrency, again
From: |
Stefan Monnier |
Subject: |
Re: Concurrency, again |
Date: |
Mon, 17 Oct 2016 14:41:19 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
> - regexp scanning in a huge file that took so long my IM sessions would time
> out because the Emacs-based client code couldn’t respond to the server
> (which scanning also turned out not to be interruptible with ^G)
FWIW, this is an algorithmic problem. The better to way to fix this is
to avoid backtracking in the regexp engine.
Also to avoid this problem, we'd need to spawn a new thread and since
regexp-matching is normally not expected to take a long time, that means
we'd need to spawn a new thread either "all the time" (just in case it
proves necessary), or "lazily" (i.e. if the current command takes too
long, then user can use a special handshake that spawns a new thread
and lets the current command finish asynchronously in that thread).
Stefan
- Re: Concurrency, again, (continued)
- Re: Concurrency, again, Ted Zlatanov, 2016/10/14
- Re: Concurrency, again, Michael Albinus, 2016/10/14
- Re: Concurrency, again, John Wiegley, 2016/10/14
- Re: Concurrency, again, John Wiegley, 2016/10/14
- Re: Concurrency, again, Ted Zlatanov, 2016/10/14
- Re: Concurrency, again, Michael Albinus, 2016/10/15
- Re: Concurrency, again, Ted Zlatanov, 2016/10/17
- Re: Concurrency, again, Ken Raeburn, 2016/10/17
- Re: Concurrency, again,
Stefan Monnier <=
- Re: Concurrency, again, Stefan Huchler, 2016/10/14
- Re: Concurrency, again, Perry E. Metzger, 2016/10/17
- Re: Concurrency, again, Eli Zaretskii, 2016/10/17
- Re: Concurrency, again, Perry E. Metzger, 2016/10/17
- Re: Concurrency, again, Eli Zaretskii, 2016/10/17
- Re: Concurrency, again, Perry E. Metzger, 2016/10/17
- Re: Concurrency, again, Lars Ingebrigtsen, 2016/10/17
- Re: Concurrency, again, Stefan Huchler, 2016/10/17
- Re: Concurrency, again, Lars Ingebrigtsen, 2016/10/18
- Re: Concurrency, again, Eli Zaretskii, 2016/10/18