<table><tr><td style="">hoffmannrobert retitled this revision from "Proposal for KFileItem to skip stat()" to "KFileItem: call stat() on demand, add SkipMimeTypeDetermination option".<br />hoffmannrobert edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-oklqwvfzc7h5shs/">(Show Details)</a>
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D19887">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;">This <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">adds a KFileItem constructor for passing a boolean<br />
skipStat.</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">changes the initialization of KFileItem. Constructors won't call init() which might do an unnecessary QT_LSTAT/stat() system call. Instead, only if a method which needs the information from stat() is called,</span> <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">If true,</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">init() and stat() are run.<br />
<br />
In addition this adds a KFileItem constructor for passing an enum MimeTypeDetermination parameter.</span> <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">KFileItemPrivate::init(),<br />
KFileItem::determineMimeType() and KFileItem::currentMimeType()<br />
won't call</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">If set to SkipMimeTypeDetermination, <br />
KFileItem::determineMimeType(), KFileItem::currentMimeType() and KFileItem::iconName() won't call isDir(),</span> QT_LSTAT or read the file.<br />
<br />
See <span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">also </span>https://phabricator.kde.org/D19784</div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D19887">https://phabricator.kde.org/D19887</a></div></div><br /><div><strong>To: </strong>hoffmannrobert, dfaure, Frameworks, Dolphin<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>