Skip to content

Commit c9190f6

Browse files
author
mokrates
committed
added let vs. setq
1 parent ec4cd58 commit c9190f6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/limo-info.org

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,19 @@ TBD
9090
* TODO Threading
9191
TBD
9292

93+
* Optimization
94+
** let vs. setq
95+
How you should set variables to a values:
96+
97+
Tests seem to show that setting values via setq is potentially
98+
slow. Mostly if there are many variables which lead to a growing of
99+
the environment. So if you have very few variables (like 3 or less),
100+
you may set them with setq, but if you have more, you should use
101+
let. Even with 3 variables it's mostly faster.
102+
103+
let* translates to setq.
104+
105+
93106
* Limo-Mode
94107
There is a ~emacs/limo.el~ which contains a simple Limo-Mode for
95108
emacs. I use it to write my own limo programs.

0 commit comments

Comments
 (0)