[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is Elisp really that slow?
From: |
Emanuel Berg |
Subject: |
Re: Is Elisp really that slow? |
Date: |
Mon, 13 May 2019 16:33:12 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Stefan Monnier wrote:
>> can this be sped up?
>>
>> (while (re-search-forward from nil t)
>> (replace-match to t))
>
> That's a perfect example where no matter how
> many man-years you invest into a super-duper
> fancy compiler for Elisp, the above code will
> not be affected one bit, because all the time
> is normally spent within `re-search-forward`
> and `replace-match` which are already
> implemented in C.
Wait, if so, isn't this the solution to the
whole problem?
1) Identify what is slow in Elisp.
2) Rewrite it in C?
What am I missing?
Is there some things that are slow _and_ cannot
easily be rewritten in C?
Or is there an Elisp-to-C transition penalty?
--
underground experts united
http://user.it.uu.se/~embe8573
- Re: Is Elisp really that slow?, (continued)
- Re: Is Elisp really that slow?, Stefan Monnier, 2019/05/12
- Re: Is Elisp really that slow?, Óscar Fuentes, 2019/05/12
- Re: Is Elisp really that slow?, Stefan Monnier, 2019/05/14
- Re: Is Elisp really that slow?, Óscar Fuentes, 2019/05/14
- Re: Is Elisp really that slow?, Samuel Wales, 2019/05/12
- Re: Is Elisp really that slow?, Stefan Monnier, 2019/05/13
- Re: Is Elisp really that slow?, Emanuel Berg, 2019/05/13
- Re: Is Elisp really that slow?,
Emanuel Berg <=
- Re: Is Elisp really that slow?, tomas, 2019/05/14
- Re: Is Elisp really that slow?, Emanuel Berg, 2019/05/14
- Re: Is Elisp really that slow?, tomas, 2019/05/14
- Re: Is Elisp really that slow?, Emanuel Berg, 2019/05/15
- Re: Is Elisp really that slow?, tomas, 2019/05/15
- Re: Is Elisp really that slow?, Emanuel Berg, 2019/05/15
- Re: Is Elisp really that slow?, tomas, 2019/05/16
- Re: Is Elisp really that slow?, Noam Postavsky, 2019/05/16
- Re: Is Elisp really that slow?, tomas, 2019/05/16
- Re: Is Elisp really that slow?, Emanuel Berg, 2019/05/23