aboutsummaryrefslogtreecommitdiff
path: root/emms.el
diff options
context:
space:
mode:
authormlang <mlang>2007-02-21 14:05:00 +0000
committermlang <mwolson@gnu.org>2007-02-21 14:05:00 +0000
commit0a2a9b02e30a9d9755102a07a41cac8bddccdab9 (patch)
treef22332bbd4182f30f0a729cf5b0edc5e29db4d45 /emms.el
parentc042491950f6b57ff1c14d6bfd9d4f01a72d5d4a (diff)
Speed up emms-play-directory-tree by about factor 10
Most of the speedup comes from using nconc in later-do instead of append (and therefore, not excessively copying lists). I see a factor of 10 speedup when generating the playlist for 37000 audio files. darcs-hash:20070221140553-08870-162cb94182e5e4947a0972a67b9229db8899e7cd.gz
Diffstat (limited to 'emms.el')
-rw-r--r--emms.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/emms.el b/emms.el
index 71e4529..6a2f8cd 100644
--- a/emms.el
+++ b/emms.el
@@ -1344,11 +1344,11 @@ or negative to seek backwards."
;; This is a simple helper data structure, used by both players
;; and tracks.
-(defun emms-dictionary (name)
+(defsubst emms-dictionary (name)
"Create a new dictionary of type NAME."
(list name))
-(defun emms-dictionary-type (dict)
+(defsubst emms-dictionary-type (dict)
"Return the type of the dictionary DICT."
(car dict))