get SongInfo in parallel

This commit is contained in:
lukeIam committed 2015-12-20 17:36:22 +01:00
1 parent caa46763cd
commit 16f4d790de
1 file changed
+1 -1
+1 -1
View File
@@ -628,7 +628,7 @@ namespace Vocaluxe.Base.Server
{ {
List<CSong> songs = CSongs.Songs; List<CSong> songs = CSongs.Songs;
return (from s in songs return (from s in songs
select _GetSongInfo(s, false)).ToArray<SSongInfo>(); select _GetSongInfo(s, false)).AsParallel().ToArray<SSongInfo>();
} }
public static string GetMp3Path(int songId) public static string GetMp3Path(int songId)