Skip to content

Commit

Permalink
lazy file info reading
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed Mar 26, 2016
1 parent 4c5639d commit 35760db
Show file tree
Hide file tree
Showing 14 changed files with 335 additions and 183 deletions.
12 changes: 11 additions & 1 deletion far/changelog
@@ -1,4 +1,14 @@
drkns 26.03.2016 01:03:37 +0200 - build 4602
drkns 26.03.2016 21:16:07 +0200 - build 4603

1. Продолжим начатое в 4602. Запрашиваем дополнительную информацию о файлах тоже по мере необходимости. Это относится к:
- количество жёстких ссылок
- количество потоков
- размер потоков
- владелец
- content data
Это значит, что включение всего этого хозяйства не должно замедлять открытие папки, кроме случаев, когда оно является критерием сортировки.

drkns 26.03.2016 01:03:37 +0200 - build 4602

1. Раскрашиваем файлы в панели не все сразу, а по мере необходимости.
Должно дать заметный эффект при большом количестве групп и/или файлов.
Expand Down
2 changes: 0 additions & 2 deletions far/common.hpp
Expand Up @@ -238,6 +238,4 @@ namespace \
#define SIGN_UTF8 0xBFBBEF
#define EOL_STR L"\r\n"

typedef std::wstring string;

#endif // COMMON_HPP_1BD5AB87_3379_4AFE_9F63_DB850DCF72B4
5 changes: 4 additions & 1 deletion far/common/preprocessor.hpp
Expand Up @@ -93,9 +93,12 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Type(const Type&) = delete; \
Type& operator=(const Type&) = delete; \

#define COPY_AND_SWAP(Type, ...) \
Type& operator=(__VA_ARGS__ rhs) { Type Tmp(rhs); using std::swap; swap(*this, Tmp); return *this; }

#define TRIVIALLY_COPYABLE(Type) \
Type(const Type&) = default; \
Type& operator=(const Type& rhs) { Type Tmp(rhs); using std::swap; swap(*this, Tmp); return *this; }
COPY_AND_SWAP(Type, const Type&)

#define TRIVIALLY_MOVABLE(Type) \
Type(Type&&) = default; \
Expand Down

0 comments on commit 35760db

Please sign in to comment.