Directly collect the full info namespace for ls dir.
Adapt thunar_io_scan_directory to optionally return ThunarFile's instea of GFile and create ThunarFiles later for some io jobs. This trick is that we can directly use the enumerator to scan all the directory info and use that for the new ThunarFiles, this saves querying a file twice resulting in much faster directory loading.
Showing
- thunar/thunar-file.c 101 additions, 30 deletionsthunar/thunar-file.c
- thunar/thunar-file.h 7 additions, 4 deletionsthunar/thunar-file.h
- thunar/thunar-io-jobs.c 6 additions, 22 deletionsthunar/thunar-io-jobs.c
- thunar/thunar-io-scan-directory.c 57 additions, 20 deletionsthunar/thunar-io-scan-directory.c
- thunar/thunar-io-scan-directory.h 1 addition, 0 deletionsthunar/thunar-io-scan-directory.h
- thunar/thunar-misc-jobs.c 3 additions, 18 deletionsthunar/thunar-misc-jobs.c
- thunar/thunar-transfer-job.c 1 addition, 1 deletionthunar/thunar-transfer-job.c
Loading
Please register or sign in to comment