diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-09-20 16:20:48 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-20 16:58:31 -0700 |
commit | 1952b762b0b7024c6a993e62ad957718ac669ac4 (patch) | |
tree | b85434889e082ff3425d2c5209fc8dc41e5fedf4 /src/directory.h | |
parent | 8f475cc0ff4640f60c139e037b38d5c0225e1478 (diff) | |
download | mpd-1952b762b0b7024c6a993e62ad957718ac669ac4.tar.gz mpd-1952b762b0b7024c6a993e62ad957718ac669ac4.tar.xz mpd-1952b762b0b7024c6a993e62ad957718ac669ac4.zip |
Replace SongList with struct songvec
Our linked-list implementation is wasteful and the
SongList isn't modified enough to benefit from being a linked
list. So use a more compact array of song pointers which
saves ~200K on a library with ~9K songs (on x86-32).
Diffstat (limited to 'src/directory.h')
-rw-r--r-- | src/directory.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/directory.h b/src/directory.h index e881f7a04..40c9d6499 100644 --- a/src/directory.h +++ b/src/directory.h @@ -20,13 +20,14 @@ #define DIRECTORY_H #include "song.h" +#include "songvec.h" typedef List DirectoryList; typedef struct _Directory { char *path; DirectoryList *subDirectories; - SongList *songs; + struct songvec songs; struct _Directory *parent; ino_t inode; dev_t device; |