emacs-devel
[Top][All Lists]
Advanced

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

Performance issue w/ `cl-loop`s `collect...into`


From: Tianxiang Xiong
Subject: Performance issue w/ `cl-loop`s `collect...into`
Date: Sat, 7 Apr 2018 17:51:19 -0700

The following runs nearly instantaneously:

(progn
  (cl-loop for i in (number-sequence 0 130000)
     collect (cons (number-to-string i) i))
  :done)

This seems to take a long time (didn't wait for it to finish):

(progn
  (cl-loop for i in (number-sequence 0 130000)
     collect (cons (number-to-string i) i) into pairs)
  :done)

Is this a known issue? I couldn't find anything in the bug tracker about it.

reply via email to

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