media-export: Process 256 children at a time
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Mon, 2 Aug 2010 20:20:39 +0000 (23:20 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Mon, 2 Aug 2010 20:20:39 +0000 (23:20 +0300)
This should improve performance of harvesting of large directories.

src/plugins/media-export/rygel-media-export-harvester.vala

index c977add..ca93aab 100644 (file)
@@ -168,7 +168,7 @@ public class Rygel.MediaExport.Harvester : GLib.Object {
 
             GLib.List<FileInfo> list = null;
             do {
-                list = yield enumerator.next_files_async (10,
+                list = yield enumerator.next_files_async (256,
                                                           Priority.DEFAULT,
                                                           this.cancellable);
             } while (process_children (list));