bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18522: 24.4.50; mapcar is very slow


From: Peter Münster
Subject: bug#18522: 24.4.50; mapcar is very slow
Date: Sun, 21 Feb 2016 15:54:43 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

On Sun, Feb 21 2016, Peter Münster wrote:

> The problem seems to be string-match:

Sorry, I was wrong. The problem seems to be the binding of
case-fold-search:

(defun my-parse-time-string-test ()
  (let (case-fold-search)
    t))

(let ((gc-cons-threshold most-positive-fixnum))
  (benchmark-run 1
    (dotimes (i 100000) (my-parse-time-string-test))))

Fast emacs: (0.054105733 0 0.0)
Slow emacs: (1.754813882 0 0.0)

-- 
           Peter





reply via email to

[Prev in Thread] Current Thread [Next in Thread]