From e1b13312f975f38d3d7437f28299912eff6947e0 Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Sun, 8 Jan 2012 00:52:56 +0000 Subject: fix the performance problems with the torrent add dialog on torrents with many files/dirs. the parent size updates just walks up parents rather than a full foreach, and the inserts try to use the previous update to speed up finding/creating the directories. I'll probably do something similar to the main files treeview. --- src/trg-file-parser.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/trg-file-parser.h') diff --git a/src/trg-file-parser.h b/src/trg-file-parser.h index eecc04a..1d7e116 100644 --- a/src/trg-file-parser.h +++ b/src/trg-file-parser.h @@ -22,6 +22,7 @@ typedef struct { gint64 length; GList *children; guint index; + gpointer parent; } trg_torrent_file_node; typedef struct { -- cgit v1.2.3