D19007: Wait for DBus Reply Before Performing Computations

2019-02-17 Thread David Narváez
narvaez abandoned this revision. REPOSITORY R293 Baloo REVISION DETAIL https://phabricator.kde.org/D19007 To: narvaez, #baloo, bruns, astippich, poboiko Cc: davidedmundson, kde-frameworks-devel, #baloo, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams

D19007: Wait for DBus Reply Before Performing Computations

2019-02-15 Thread Stefan Brüns
bruns added inline comments. INLINE COMMENTS > narvaez wrote in monitor.cpp:90 > The batch size is **hardcoded** at 40 so querying it at at any interval is > pointless, for that matter. Instead of hardcoding more magic numbers I would > just #define BATCH_SIZE 40 inside the Engine lib and set t

D19007: Wait for DBus Reply Before Performing Computations

2019-02-15 Thread David Narváez
narvaez added inline comments. INLINE COMMENTS > bruns wrote in monitor.cpp:90 > The batchsize 40 by default, so currently the update interval is 200 files. > 100 or 200 does not matter to much, it is just a crude limiter anyway. > > A better fix would be emit the remaining time directly from t

D19007: Wait for DBus Reply Before Performing Computations

2019-02-14 Thread Stefan Brüns
bruns added inline comments. INLINE COMMENTS > narvaez wrote in monitor.cpp:90 > It does fix the issue because if getBatchSize returns 0 then updateInterval > is set to 100. It does introduce another issue which is that it won't allow > for an update interval under 100 (say, if the batch size w

D19007: Wait for DBus Reply Before Performing Computations

2019-02-14 Thread David Narváez
narvaez added inline comments. INLINE COMMENTS > davidedmundson wrote in monitor.cpp:90 > That won't fix the issue. > > getBatchSize is still returning a QDBusPendingReply, using the value before > it's loaded will always be zero. It does fix the issue because if getBatchSize returns 0 then up

D19007: Wait for DBus Reply Before Performing Computations

2019-02-14 Thread David Edmundson
davidedmundson added inline comments. INLINE COMMENTS > bruns wrote in monitor.cpp:90 > much more trivial: > > auto updateInterval = std::max(100, 5 * m_scheduler->getBatchSize()); > if (m_filesIndexed % updateInterval == 0) { ... That won't fix the issue. getBatchSize is still returning a

D19007: Wait for DBus Reply Before Performing Computations

2019-02-14 Thread Stefan Brüns
bruns requested changes to this revision. This revision now requires changes to proceed. REPOSITORY R293 Baloo REVISION DETAIL https://phabricator.kde.org/D19007 To: narvaez, #baloo, bruns, astippich, poboiko Cc: kde-frameworks-devel, #baloo, ashaposhnikov, michaelh, astippich, spoorun, ngr

D19007: Wait for DBus Reply Before Performing Computations

2019-02-14 Thread Stefan Brüns
bruns added a comment. good catch, but the fix is overengineered ... INLINE COMMENTS > monitor.cpp:90 > +batchSize.waitForFinished(); > > +if (!batchSize.isError()) { much more trivial: auto updateInterval = std::max(100, 5 * m_scheduler->getBatchSize()); if (m_filesIndexed %

D19007: Wait for DBus Reply Before Performing Computations

2019-02-14 Thread Nathaniel Graham
ngraham added reviewers: bruns, astippich, poboiko. REPOSITORY R293 Baloo REVISION DETAIL https://phabricator.kde.org/D19007 To: narvaez, #baloo, bruns, astippich, poboiko Cc: kde-frameworks-devel, #baloo, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams

D19007: Wait for DBus Reply Before Performing Computations

2019-02-14 Thread David Narváez
narvaez edited the test plan for this revision. REPOSITORY R293 Baloo REVISION DETAIL https://phabricator.kde.org/D19007 To: narvaez, #baloo Cc: kde-frameworks-devel, #baloo, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams

D19007: Wait for DBus Reply Before Performing Computations

2019-02-14 Thread David Narváez
narvaez added a reviewer: Baloo. REPOSITORY R293 Baloo REVISION DETAIL https://phabricator.kde.org/D19007 To: narvaez, #baloo Cc: kde-frameworks-devel, #baloo, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams

D19007: Wait for DBus Reply Before Performing Computations

2019-02-14 Thread David Narváez
narvaez created this revision. Herald added projects: Frameworks, Baloo. Herald added subscribers: Baloo, kde-frameworks-devel. narvaez requested review of this revision. REVISION SUMMARY If the scheduler has not replied by the time the batch size is used, the default value is 0 and the mod op