From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: HOWTO: lightning fast Emacs on Linux multicore Date: Sun, 16 Nov 2014 08:41:37 +0100 Organization: Aioe.org NNTP Server Message-ID: <87fvdjh9se.fsf@debian.uxu> References: <871tpdl29g.fsf@debian.uxu> <8761efyhum.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1416123928 16278 80.91.229.3 (16 Nov 2014 07:45:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Nov 2014 07:45:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 16 08:45:22 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XpuWN-0003V6-N9 for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Nov 2014 08:45:19 +0100 Original-Received: from localhost ([::1]:43135 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpuWN-0000LC-A9 for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Nov 2014 02:45:19 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!news.stack.nl!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: feB02bRejf23rfBm51Mt7Q.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:1axMinn7gqWn5yxQ+jBVMOOynJg= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:208671 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:100949 Archived-At: "Pascal J. Bourguignon" writes: > If you want to have fun, perhaps implementing a few > emacs lisp library functions in parallel > (multi-threaded), could speed things up. > > You'd have to find out what operations (particularly > on big buffers) are slow and parallelizable. > > For example, replace-string could split its > start/end range, (check the cuts for occurences) and > then process each range in parallel. > > Similarly, replace-regexp and fontifying which is > often thought to be slow, could benefit (taking the > same precautions around the cuts). > > A lot of code that use iterative search > (re-search-forward) could probably be upgraded, > using a function (such as re-all-matches) that would > perform the search in parallel on the different > ranges. I'm afraid you overestimate me. The stuff I mention are Linux processes. If I put Emacs on core A, everything from Emacs will be on core A. I don't know how - if indeed possible - to put something out of Emacs on some other core, and even less so to put things on different cores and then to synchronize the result after executing in parallel. But yeah - that would be very cool indeed. And fast. -- underground experts united