[PATCH] Add move constructor and move assignment operator for, FileName class

2024-10-03 Thread Jean-Marc Lasgouttes
Add move constructor and move assignment operator for FileName class This is take 2, after 854c9de8 had to be reverted. See discussion here: https://marc.info/?t=16101843892&r=2&w=2 In the case of move constructor, instead of setting the Private pointer of the moved FileName to null

Re: [PATCH] Add move constructor and move assignment operator for FileName class

2021-01-13 Thread Yuriy Skalko
Frankly, I am not at ease at all with the way things get updated. I do not understand the Qt mechanisms well enough. If you feel like trying to understand it, please do. Be warn though that we are in a working but fragile situation now, changes will lead to a rough ride but it is probably worth

Re: [PATCH] Add move constructor and move assignment operator for FileName class

2021-01-09 Thread Jean-Marc Lasgouttes
Le 09/01/2021 à 22:13, Yuriy Skalko a écrit : Yes, only these 3. Seems like this is caused by `getIcon` calls in DynamicMenuButton::updateTriggered (called on every toolbar update, that happens on every key press). And `getIcon` doesn't just return icon from some cache, but directly checks th

Re: [PATCH] Add move constructor and move assignment operator for FileName class

2021-01-09 Thread Yuriy Skalko
Also I noticed that these files are accessed on every keypress (even on navigating document with arrows): lib/images/undo.svgz lib/images/textstyle-apply.svgz lib/images/paste.svgz Is it *really* necessary? It would be because of getStatus, I suspect, though I'm not sure why the files would b

Re: [PATCH] Add move constructor and move assignment operator for FileName class

2021-01-09 Thread Jean-Marc Lasgouttes
Le 09/01/2021 à 10:41, Yuriy Skalko a écrit : Also I noticed that these files are accessed on every keypress (even on navigating document with arrows): lib/images/undo.svgz lib/images/textstyle-apply.svgz lib/images/paste.svgz Is it *really* necessary? Only these files? JMarc -- lyx-devel m

Re: [PATCH] Add move constructor and move assignment operator for FileName class

2021-01-09 Thread Richard Kimberly Heck
On 1/9/21 4:41 AM, Yuriy Skalko wrote: >> I don't know enough about this stuff to say much. I think this would be >> worth doing for 2.4.0, as it will probably provide for some speed as >> well. >> >> Riki > > Committed at 854c9de. > > Also I noticed that these files are accessed on every keypress

Re: [PATCH] Add move constructor and move assignment operator for FileName class

2021-01-09 Thread Yuriy Skalko
I don't know enough about this stuff to say much. I think this would be worth doing for 2.4.0, as it will probably provide for some speed as well. Riki Committed at 854c9de. Also I noticed that these files are accessed on every keypress (even on navigating document with arrows): lib/images/

Re: [PATCH] Add move constructor and move assignment operator for FileName class

2021-01-08 Thread Richard Kimberly Heck
On 1/6/21 7:33 PM, Yuriy Skalko wrote: > This should reduce memory allocations for this heavily used class. I don't know enough about this stuff to say much. I think this would be worth doing for 2.4.0, as it will probably provide for some speed as well. Riki -- lyx-devel mailing list lyx-deve

[PATCH] Add move constructor and move assignment operator for FileName class

2021-01-06 Thread Yuriy Skalko
This should reduce memory allocations for this heavily used class. Yuriy From 15c952108bd6e79a712f159326804a145186b50b Mon Sep 17 00:00:00 2001 From: Yuriy Skalko Date: Thu, 7 Jan 2021 02:27:31 +0200 Subject: [PATCH] Add move constructor and move assignment operator for FileName class