From 0a2a9b02e30a9d9755102a07a41cac8bddccdab9 Mon Sep 17 00:00:00 2001 From: mlang Date: Wed, 21 Feb 2007 14:05:00 +0000 Subject: 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 --- emms.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'emms.el') 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)) -- cgit v1.2.3