Feed Advanced Search

Jul 7 2018

jtamate added a reverting change for R318:63825de82f3a: Speedup sort: R318:bd08aa09b233: A complete build does not fix the crashes I'm having. I prefer to wait until….
Jul 7 2018, 1:16 PM
jtamate committed R318:bd08aa09b233: A complete build does not fix the crashes I'm having. I prefer to wait until… (authored by jtamate).
A complete build does not fix the crashes I'm having. I prefer to wait until…
Jul 7 2018, 1:16 PM

Jul 6 2018

jtamate added a comment to D13814: Speedup sort.

I really, really hate these things.
I've been testing this patch more than one month without any problem.
And now, after pushing it, I got crashes everytime I start dolphin without parameters (user home).
But not if I start it in / and keep changing directories, including user home.

Jul 6 2018, 9:53 PM · Dolphin
jtamate committed R318:63825de82f3a: Speedup sort (authored by jtamate).
Speedup sort
Jul 6 2018, 3:12 PM
jtamate closed D13814: Speedup sort.
Jul 6 2018, 3:12 PM · Dolphin
jtamate committed R241:e7bd1c4b0abe: Use non deprecated fastInsert in renameDialog (authored by jtamate).
Use non deprecated fastInsert in renameDialog
Jul 6 2018, 3:08 PM
jtamate closed D13917: Use non deprecated fastInsert in renameDialog.
Jul 6 2018, 3:08 PM · Frameworks
jtamate committed R241:be6075a2659f: Use non deprecated fastInsert in slaveBase (authored by jtamate).
Use non deprecated fastInsert in slaveBase
Jul 6 2018, 3:07 PM
jtamate closed D13916: Use non deprecated fastInsert in slaveBase.
Jul 6 2018, 3:07 PM · Frameworks
jtamate committed R241:7b1210091c55: Use non deprecated fastInsert in kio_trash (authored by jtamate).
Use non deprecated fastInsert in kio_trash
Jul 6 2018, 3:00 PM
jtamate closed D13918: Use non deprecated fastInsert in kio_trash.
Jul 6 2018, 3:00 PM · Frameworks
jtamate updated the summary of D13918: Use non deprecated fastInsert in kio_trash.
Jul 6 2018, 3:00 PM · Frameworks
jtamate committed R241:7048d259529f: Use non deprecated fastInsert in file_unix (authored by jtamate).
Use non deprecated fastInsert in file_unix
Jul 6 2018, 2:54 PM
jtamate closed D13915: Use non deprecated fastInsert in file_unix.
Jul 6 2018, 2:54 PM · Frameworks
jtamate committed R241:de53875a6f52: Use non deprecated fastInsert and replace in http.cpp (authored by jtamate).
Use non deprecated fastInsert and replace in http.cpp
Jul 6 2018, 2:53 PM
jtamate closed D13913: Use non deprecated fastInsert and replace in http.cpp.
Jul 6 2018, 2:53 PM · Frameworks
jtamate committed R241:30a0b32d10e4: Use non deprecated replace in ForwardingSlave (authored by jtamate).
Use non deprecated replace in ForwardingSlave
Jul 6 2018, 2:51 PM
jtamate closed D13912: Use non deprecated replace in ForwardingSlave.
Jul 6 2018, 2:51 PM · Frameworks
jtamate committed R241:b4708f4ce2ec: Use non deprecated fastInsert in remoteimpl.cpp (authored by jtamate).
Use non deprecated fastInsert in remoteimpl.cpp
Jul 6 2018, 2:50 PM
jtamate closed D13910: Use non deprecated fastInsert in remoteimpl.cpp.
Jul 6 2018, 2:50 PM · Frameworks
jtamate committed R241:c2bd52926734: Use non deprecated fastInsert in kfileitemtest (authored by jtamate).
Use non deprecated fastInsert in kfileitemtest
Jul 6 2018, 2:49 PM
jtamate closed D13909: Use non deprecated fastInsert in kfileitemtest.
Jul 6 2018, 2:49 PM · Frameworks
jtamate committed R241:f4b6e71c6839: Use non deprecated fastInsert in ftp.cpp (authored by jtamate).
Use non deprecated fastInsert in ftp.cpp
Jul 6 2018, 2:47 PM
jtamate closed D13908: Use non deprecated fastInsert in ftp.cpp.
Jul 6 2018, 2:47 PM · Frameworks
jtamate updated the diff for D13898: Use non deprecated fastInsert in file.cpp (first of many to come).

Incorporated Stefan code.
Fill again the extra data like User/Group.
I don't see any change and I don't want to break anything more.

Jul 6 2018, 10:48 AM · Frameworks
jtamate requested review of D13918: Use non deprecated fastInsert in kio_trash.
Jul 6 2018, 8:07 AM · Frameworks
jtamate requested review of D13917: Use non deprecated fastInsert in renameDialog.
Jul 6 2018, 8:02 AM · Frameworks
jtamate requested review of D13916: Use non deprecated fastInsert in slaveBase.
Jul 6 2018, 7:50 AM · Frameworks
jtamate added a dependency for D13915: Use non deprecated fastInsert in file_unix: D13782: Ignore NTFS hidden flag for root volume.
Jul 6 2018, 7:42 AM · Frameworks
jtamate added a dependent revision for D13782: Ignore NTFS hidden flag for root volume: D13915: Use non deprecated fastInsert in file_unix.
Jul 6 2018, 7:42 AM · Frameworks
jtamate requested review of D13915: Use non deprecated fastInsert in file_unix.
Jul 6 2018, 7:41 AM · Frameworks
jtamate requested review of D13913: Use non deprecated fastInsert and replace in http.cpp.
Jul 6 2018, 7:35 AM · Frameworks
jtamate requested review of D13912: Use non deprecated replace in ForwardingSlave.
Jul 6 2018, 7:26 AM · Frameworks
jtamate requested review of D13910: Use non deprecated fastInsert in remoteimpl.cpp.
Jul 6 2018, 7:11 AM · Frameworks
jtamate requested review of D13909: Use non deprecated fastInsert in kfileitemtest.
Jul 6 2018, 7:04 AM · Frameworks
jtamate requested review of D13908: Use non deprecated fastInsert in ftp.cpp.
Jul 6 2018, 7:02 AM · Frameworks
jtamate added inline comments to D13898: Use non deprecated fastInsert in file.cpp (first of many to come).
Jul 6 2018, 6:39 AM · Frameworks
jtamate updated the diff for D13898: Use non deprecated fastInsert in file.cpp (first of many to come).

Added a comment: // readlink doesn't append a null byte to linkTargetBuffer.data()
Using target path to read ACL in a non broken symbolic link.
Do not fill remaining data in case of broken link, doesn't affect dolphin.

Jul 6 2018, 6:39 AM · Frameworks

Jul 5 2018

jtamate committed R241:d24a61cae282: Refactor udsentrytest (authored by jtamate).
Refactor udsentrytest
Jul 5 2018, 5:59 PM
jtamate closed D13897: Refactor udsentrytest.
Jul 5 2018, 5:59 PM · Frameworks
jtamate committed R241:8cd6be0b1c09: Restore compatibility of UDS::insert (authored by jtamate).
Restore compatibility of UDS::insert
Jul 5 2018, 5:29 PM
jtamate closed D13892: Restore compatibility of UDS::insert.
Jul 5 2018, 5:29 PM · Frameworks
jtamate updated the diff for D13898: Use non deprecated fastInsert in file.cpp (first of many to come).

Renamed isSymLink to isBrokenSymLink.

Jul 5 2018, 11:46 AM · Frameworks
jtamate updated the diff for D13897: Refactor udsentrytest.

Commas at the end.

Jul 5 2018, 11:37 AM · Frameworks
jtamate updated the diff for D13814: Speedup sort.

Remove the friend non-exist class.

Jul 5 2018, 11:30 AM · Dolphin
jtamate requested review of D13898: Use non deprecated fastInsert in file.cpp (first of many to come).
Jul 5 2018, 9:12 AM · Frameworks
jtamate requested review of D13897: Refactor udsentrytest.
Jul 5 2018, 8:15 AM · Frameworks
jtamate updated the diff for D13892: Restore compatibility of UDS::insert.

Added KIOCORE_DEPRECATED

Jul 5 2018, 6:27 AM · Frameworks

Jul 4 2018

jtamate updated the diff for D13892: Restore compatibility of UDS::insert.

Now better.

Jul 4 2018, 9:05 PM · Frameworks
jtamate requested review of D13892: Restore compatibility of UDS::insert.
Jul 4 2018, 8:59 PM · Frameworks
jtamate added a comment to D13813: Make this test work again with new uds implementation.

But ForwardingSlaveBase::prepareUDSEntry in KIO itself, uses insert() to replace UDS_URL, and in fact all of ForwardingSlaveBase should use replace(), as well as users of ForwardingSlaveBase like kio_desktop.

Jul 4 2018, 8:16 PM · Dolphin

Jul 3 2018

jtamate updated the diff for D13813: Make this test work again with new uds implementation.

Call items.append inside the loop.

Jul 3 2018, 5:49 PM · Dolphin
jtamate abandoned D10342: From 100% plasma cpu usage to normal when using vivaldi.
Jul 3 2018, 9:40 AM · Plasma
jtamate added a comment to D10342: From 100% plasma cpu usage to normal when using vivaldi.
In D10342#286023, @hein wrote:

This patch doesn't make any sense. It's setting up a cache for something computed from data that's subject to change, and it's never evicting it when that data changes.

Jul 3 2018, 6:39 AM · Plasma
jtamate added a comment to D13813: Make this test work again with new uds implementation.

Did we break how KIO works and we're now going after the users of KIO and fixing them or was this a "bad usage" from starters that worked by chance?

Jul 3 2018, 6:27 AM · Dolphin

Jul 2 2018

jtamate updated the diff for D13814: Speedup sort.

Undo the right number of steps from a quick experiment. :-)

Jul 2 2018, 11:20 AM · Dolphin
jtamate updated the diff for D13814: Speedup sort.

In other words, the fix for that can probably be removed now.

I prefer not to do it (even I've tried without any crash), because QVariant is not even reentrant.

Jul 2 2018, 10:37 AM · Dolphin

Jul 1 2018

jtamate updated the diff for D13814: Speedup sort.

Can not use the name lessThan because of: error: use of ‘lessThan’ before deduction of ‘auto’

Jul 1 2018, 4:53 PM · Dolphin
jtamate added a comment to D13814: Speedup sort.

I assume you are sorting by name with "natural sorting". There may be another possibility for speedup here:
QCollator::sortkey(), http://doc.qt.io/qt-5/qcollator.html#sortKey

It might be possible to generate the sortkey in e.g. https://phabricator.kde.org/source/dolphin/browse/master/src/kitemviews/kfileitemmodel.cpp$1334

Jul 1 2018, 4:51 PM · Dolphin
jtamate updated the diff for D13814: Speedup sort.

Remove the _ prefix.

Jul 1 2018, 2:53 PM · Dolphin
jtamate added a comment to D13814: Speedup sort.

I don't know if that's still an issue or if your patch re-introduces whatever the problem was (race conditions?). You could look back in the commit log when that was added to figure out more about it.

To answer that myself, it was done in this commit: https://cgit.kde.org/dolphin.git/commit/src/kitemviews/kfileitemmodel.cpp?id=d9680ead8099df9a2b06bfed61a62923778996f2
And doesn't explain anything :)

If you follow the link in the comment, i.e. https://bugs.kde.org/show_bug.cgi?id=312679, it mentions date sorting and KDateTime being non-reentrant.

Jul 1 2018, 2:52 PM · Dolphin
jtamate updated the diff for D10342: From 100% plasma cpu usage to normal when using vivaldi.

Implement only the windowUrlFromMetadata cache.
It avoids a 100% plasma cpu usage when using vivaldi in private navigation.

Jul 1 2018, 6:50 AM · Plasma
jtamate updated the diff for D13813: Make this test work again with new uds implementation.

Use 3 entries instead of replace().
Now it will work with any kio version.

Jul 1 2018, 5:55 AM · Dolphin
jtamate updated the diff for D13813: Make this test work again with new uds implementation.

Updated the patch with context.

Jul 1 2018, 5:36 AM · Dolphin

Jun 30 2018

jtamate added a dependency for D13814: Speedup sort: D13813: Make this test work again with new uds implementation.
Jun 30 2018, 3:41 PM · Dolphin
jtamate added a dependent revision for D13813: Make this test work again with new uds implementation: D13814: Speedup sort.
Jun 30 2018, 3:41 PM · Dolphin
jtamate requested review of D13814: Speedup sort.
Jun 30 2018, 3:41 PM · Dolphin
jtamate requested review of D13813: Make this test work again with new uds implementation.
Jun 30 2018, 3:40 PM · Dolphin

Jun 24 2018

jtamate committed R241:1cea9463f471: Make it possible to go up to root again (authored by jtamate).
Make it possible to go up to root again
Jun 24 2018, 4:53 PM
jtamate closed D13674: Make it possible to go up to root again.
Jun 24 2018, 4:53 PM · Frameworks

Jun 22 2018

jtamate updated the diff for D13674: Make it possible to go up to root again.

Moved the comment.

Jun 22 2018, 6:45 PM · Frameworks
jtamate updated the diff for D13674: Make it possible to go up to root again.

Removed comment and added autotest.

Jun 22 2018, 6:29 PM · Frameworks
jtamate updated the diff for D13676: Make it possible to change directory up even with trailing slashes in the url .

Using NormalizePathSegments.

Jun 22 2018, 11:57 AM · Frameworks
jtamate requested review of D13676: Make it possible to change directory up even with trailing slashes in the url .
Jun 22 2018, 10:48 AM · Frameworks
jtamate updated the diff for D13674: Make it possible to go up to root again.

Your suggested code works.

Jun 22 2018, 10:20 AM · Frameworks
jtamate requested review of D13674: Make it possible to go up to root again.
Jun 22 2018, 9:32 AM · Frameworks

Jun 19 2018

jtamate committed R241:bba871deced2: Use QUrl < instead of QString.compare (authored by jtamate).
Use QUrl < instead of QString.compare
Jun 19 2018, 2:54 PM
jtamate closed D13590: Use QUrl < instead of QString.compare.
Jun 19 2018, 2:54 PM · Frameworks

Jun 18 2018

jtamate updated the diff for D13590: Use QUrl < instead of QString.compare.

You're right :-)

Jun 18 2018, 4:45 PM · Frameworks
jtamate requested review of D13590: Use QUrl < instead of QString.compare.
Jun 18 2018, 3:43 PM · Frameworks

Jun 14 2018

jtamate added a comment to D13475: fix sftp links with new uds implementation.

I'm backporting it. Before I push: will this work also with previous KIO versions?

Jun 14 2018, 9:52 AM
jtamate added a comment to D13475: fix sftp links with new uds implementation.

Should we backport this on the stable branch? Otherwise affected people will have to either downgrade kio or compile kio-extras from master...

Jun 14 2018, 8:37 AM

Jun 13 2018

jtamate committed R241:fb3c94ed96c3: Enable comparing KFileItems by url (authored by jtamate).
Enable comparing KFileItems by url
Jun 13 2018, 5:32 PM
jtamate closed D13211: Enable comparing KFileItems by url.
Jun 13 2018, 5:32 PM · Frameworks
jtamate committed R320:d8e976394fdb: Remove an space and a new line (authored by jtamate).
Remove an space and a new line
Jun 13 2018, 5:25 PM
jtamate committed R320:471f96763748: fix sftp links with new uds implementation (authored by jtamate).
fix sftp links with new uds implementation
Jun 13 2018, 5:23 PM
jtamate closed D13475: fix sftp links with new uds implementation.
Jun 13 2018, 5:23 PM

Jun 12 2018

jtamate updated the diff for D13211: Enable comparing KFileItems by url.

Change @since to 5.48

Jun 12 2018, 9:22 AM · Frameworks
jtamate abandoned D12897: Reserve space for the cachedLineForRanges Qhash (optimization).

More numbers:
The patch reserves 67 buckets in the QHash table vs. 37 by default.
In my test, pasing the content of https://www.boe.es/legislacion/documentos/ConstitucionCASTELLANO.pdf from Okular,
the number of items in the cache is a maximum of 24 members when inserting.
But the first undo uses up to 2300 members (4099 buckets), and later undoes only use a maximum of 43 members.

Jun 12 2018, 7:28 AM · Frameworks, Kate
jtamate added inline comments to D13475: fix sftp links with new uds implementation.
Jun 12 2018, 6:27 AM

Jun 11 2018

jtamate updated the diff for D13475: fix sftp links with new uds implementation.

I misread what was after the goto. :-(
Modified also the similar method createUDSEntry.

Jun 11 2018, 2:00 PM
jtamate added a comment to D12696: Use the new uds implementation.

I'm sorry, I was missing a -dev package and therefore I was not compiling kio sftp.

Jun 11 2018, 8:05 AM · Frameworks
jtamate requested review of D13475: fix sftp links with new uds implementation.
Jun 11 2018, 8:03 AM

Jun 10 2018

jtamate added a comment to D12897: Reserve space for the cachedLineForRanges Qhash (optimization).

@mwolff To me this looks ok - do you see an issue with this? E.g. that KTextEditor will require much more memory for almost no gain?

If there is a more constrained limit, this should be changed, of course.

Jun 10 2018, 6:19 AM · Frameworks, Kate

Jun 7 2018

jtamate added a comment to D12696: Use the new uds implementation.

Hi! Probably after this commit sftp slave crashes when showing a directory with links. Please see my code comment. Can you also reproduce or is it on my side only?

I'm sorry, I can't reproduce it with dolphin. (symbolic links and hard links and sftp://127.0.0.1).
Could you get a backtrace with more information, at least who is calling udsentry.cpp, line 107? Probably you can get it running the program inside gdb or under valgrind. Or you should compile the program and dependencies with -DCMAKE_BUILD_TYPE=RelWithDebInfo

Jun 7 2018, 7:30 AM · Frameworks

Jun 5 2018

jtamate updated the diff for D12945: kcoredirlister lstItems benchmark.

Changed the structure QListBinaryHash to QMap
Changed from KFileItems pointers to Values (it caused memory problems).

Jun 5 2018, 7:12 AM · Frameworks

Jun 1 2018

jtamate updated the diff for D10742: get rid of the raw KFileItem pointers in KCoreDirListerCache.

The change in kdirmodel is not needed anymore.
The methods that were const are const again.
Better documented the new reinsert method.

Jun 1 2018, 8:57 AM · Frameworks
jtamate updated the diff for D13211: Enable comparing KFileItems by url.

Now passes the tests and its performance for non invalid items is not degraded too much (same +3ms inserting).

Jun 1 2018, 7:22 AM · Frameworks

May 30 2018

jtamate committed R241:ae08cc2c983c: [kcoredirlister] Remove as many url.toString() as possible (authored by jtamate).
[kcoredirlister] Remove as many url.toString() as possible
May 30 2018, 5:38 PM
jtamate closed D13189: [kcoredirlister] Remove as many url.toString() as possible.
May 30 2018, 5:38 PM · Frameworks