--===============1463819666== Content-Type: multipart/signed; boundary="nextPart2338291.oHozE18fL9"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart2338291.oHozE18fL9 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, On Monday 19 May 2008, James Ellis wrote: > Hi > > I'm not sure about anyone else but I find Quanta's CPU and memory > usage to be pretty extreme, especially on startup.=20 Would be nice to see some figures. As we know [*] top is not a good tool=20 on Linux to measure memory consumption, but I use it to see memory=20 increase/decrease during time.=20 I started Quanta without any project, and it shows 199m 41m 25m (VIRT=20 RES SHR). This is little more than Kate (171, 29, 21). After I load the=20 project that holds all the kdewebdev.org web pages: 202m 44m 25m I find this increase minimal. After loading my huge test html file (700KB, 12000 lines): 234m 71m 26m=20 =2E Now indeed the memory usage increased, but this was an extreme file. Th= =20 e increase is partly because of katepart (the editor) and partly because=20 of the Quanta internals (the node tree). Showing the structure tree for this file increases some more: 253m 90m =20 26m. Unfortunately even after closing the file, top shows the same=20 amount. But there isn't that huge leak (I don't say there isn't any, see=20 below), as if you reopen again the same file, you get: 253m 91m 26m. I had to close/open several times the same file to see +1m increase=20 again. So I'd like to know what do you see there (sorry if you already told=20 that, I still have some mails to read). > Out of all the KDE > apps that I use it's the one that slows down the system the most, by > a fair margin. To the point where there is a noticeable lag when > typing this message between key stroked and the key appearing on the > page. That usually indicates that the parser reparses continuously the whole=20 file as it cannot find the area that was changed. Normally I'd say to give= =20 us the file for testing, but I don't do that as sincerely the parser used=20 in Quanta 3 is dead, it is not used anymore in Quanta4 and we don't have=20 the resources to do big changes in Quanta3.=20 > It's most noticeable on startup when a project is being scanned - > it's less of an issue with small projects which would point to a > scaling issue. I regularly see CPU usage between 50 and 99% and > memory usage generally outstrips Xorg which usually runs at 6% or so. As the other thread shows, the project parsing is fast. I'd suspect the=20 code parser to be slow. Anyway, try to configure quanta to not open the=20 last opened files in the project and see how it works. > Once Quanta has finished it's startup dance, system load returns to > normal. > Doing an strace on the process reveals what looks to be Quanta doing > a stat on every file in the project. That is interesting. Quanta stats the files, but I don't remember doing=20 it on opening, but before uploading (there you can see that it is slow=20 before the upload dialog shows and marks which files need to be=20 uploaded). > So, I guess the big questions are > - is this cpu and memory usage really needed? The answer is: probably yes, otherwise it wouldn't use it. ;) CPU and=20 memory usage was important everytime, as I usually tested Quanta also on=20 a low-end system (550Mhz, 192MB ram). I found to be usable there as=20 well. I admit that my tests may not reflect the usage of all users, but=20 for what I did was ok. > - Does Quanta need to stat every file in the project on startup? Now I checked the code. It indeed stats every file, if it is a local=20 project, to check if it exists or not. If not, it is removed from the=20 project file. The drawbacks of storing the file names in the project=20 file... Is it needed? Probably it isn't mandatory, but it is a nice=20 feature. I could suggest to you one thing, if you are not afraid of=20 touching the code and compile the source: comment out projectlist.cpp, line 87 until line 100, the check if it is a local file,=20 and if it is the check if the file exists or not. > - Couldn't it just read the XML project file and put a representation > of that in the file tree?=20 This is what it does. Andras =2D-=20 =20 Quanta Plus developer - http://quanta.kdewebdev.org K Desktop Environment - http://www.kde.org --nextPart2338291.oHozE18fL9 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iD8DBQBIObp6TQdfac6L/08RAj0ZAJwI5dC4JtVo9VSj2yuMgc3BaoCDgQCfYwQc IZgrVg90qgqWirUS2jTJYKg= =RGsa -----END PGP SIGNATURE----- --nextPart2338291.oHozE18fL9-- --===============1463819666== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Quanta mailing list Quanta@mail.kde.org https://mail.kde.org/mailman/listinfo/quanta --===============1463819666==--