[libcxx-commits] [libcxx] [libcxx] Cache file attributes during directory iteration. (PR #93316)

Eduard Satdarov via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 19 07:48:27 PDT 2024


================
@@ -77,13 +77,13 @@ class __dir_stream {
   bool assign() {
     if (!wcscmp(__data_.cFileName, L".") || !wcscmp(__data_.cFileName, L".."))
       return false;
-    // FIXME: Cache more of this
-    // directory_entry::__cached_data cdata;
-    // cdata.__type_ = get_file_type(__data_);
-    // cdata.__size_ = get_file_size(__data_);
-    // cdata.__write_time_ = get_write_time(__data_);
     __entry_.__assign_iter_entry(
----------------
ed-sat wrote:

I don't understand exactly your question. But for my it was easy to write a new function because 
__create_iter_result is being used in other OS implementation and I need only for Windows

https://github.com/llvm/llvm-project/pull/93316


More information about the libcxx-commits mailing list