LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-03-2021, 02:07 AM   #1
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,220

Rep: Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942
Emacs 28 with native-compilation / gccemacs


Just a heads up that native compilation has been merged into the main tree (project here), and I believe it will be the default for Emacs 28. I've not tried it yet, but I hear that it will bring significant performance boosts. This paper claims speed improvements "ranging from 2.3x up to 42x with respect to the equivalent byte-code, measured over a set of small benchmarks". Awesome!
 
Old 05-03-2021, 02:29 AM   #2
giomat
Member
 
Registered: Jul 2017
Posts: 337

Rep: Reputation: 238Reputation: 238Reputation: 238
Yes it's really fast, i tested it for a while with a local build.
However Im not sure it will be the default build option, as i understood only the compilation flag is made official from experimental. I hope it's not the case though.
 
1 members found this post helpful.
Old 05-03-2021, 04:10 AM   #3
cycojesus
Member
 
Registered: Dec 2005
Location: Lyon, France
Distribution: Slackware-current
Posts: 116

Rep: Reputation: 79
Am I missing something? Because I get
Code:
configure: error: elisp native compiler requested but libgccjit not found.
Please try installing libgccjit or similar package.
 
Old 05-03-2021, 06:23 AM   #4
2slguevH
LQ Newbie
 
Registered: Jul 2019
Distribution: slackware
Posts: 8

Rep: Reputation: Disabled
Quote:
Originally Posted by cycojesus View Post
Am I missing something? Because I get
Code:
configure: error: elisp native compiler requested but libgccjit not found.
Please try installing libgccjit or similar package.
For gccjit, build gcc with
Code:
--enable-languages=jit
 
Old 05-08-2021, 03:59 PM   #5
anon117
LQ Newbie
 
Registered: Apr 2021
Posts: 3

Rep: Reputation: Disabled
Praise the light! It is indeed faster(especially noticeable if you use lsp-mode)
 
Old 05-09-2021, 12:12 AM   #6
usr345
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 204
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by Lembrun View Post
Praise the light! It is indeed faster(especially noticeable if you use lsp-mode)
I doubt that, cause LSP mode uses external LSP server and the productivity of the overall system depends upon the speed of the server + communication delays.

Only native Emacs functions will work faster.

---------------------------------------

It would be great to have Emacs with native compilation in the new Slackware 15!
 
Old 05-09-2021, 03:28 AM   #7
anon117
LQ Newbie
 
Registered: Apr 2021
Posts: 3

Rep: Reputation: Disabled
Quote:
Originally Posted by usr345 View Post
I doubt that, cause LSP mode uses external LSP server and the productivity of the overall system depends upon the speed of the server + communication delays.

Only native Emacs functions will work faster.

---------------------------------------

It would be great to have Emacs with native compilation in the new Slackware 15!
You mean the 200% speedup was a lie ? https://emacs-lsp.github.io/lsp-mode...ance/#gccemacs.

I attributed the poor performance of lsp to my 10 years old laptop
 
Old 05-09-2021, 11:49 PM   #8
usr345
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 204
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by Lembrun View Post
You mean the 200% speedup was a lie ? https://emacs-lsp.github.io/lsp-mode...ance/#gccemacs.

I attributed the poor performance of lsp to my 10 years old laptop
200% speedup means that the compiled elisp code runs 200% faster then the previous bytecode. It is only related to native Emacs functions. Here we have the following scheme: (Emacs) <- (Communication line) -> (LSP server).


LSP server won't run faster. And there are still communication delays. There will be a speedup, but not 200%.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install non native programs as native Vpcghostlinux elementary OS 2 12-26-2017 02:58 AM
How can I get emacs -nw when I call emacs from a terminal but GUI emacs elsewhere? Blackened Justice Linux - Newbie 4 09-08-2011 07:57 AM
[SOLVED] The way to compile kernel with -mtune=native (or -march=native) kaz2100 Debian 3 08-18-2011 03:45 AM
native compilation on ARM ?? ra2008 Linux - Embedded & Single-board computer 5 07-27-2008 07:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration