From kwrite-devel Thu Oct 30 14:27:41 2008 From: "Ivo Anjo" Date: Thu, 30 Oct 2008 14:27:41 +0000 To: kwrite-devel Subject: Re: Syntax highlighting files Message-Id: <557ea2710810300727l73dacc5em5e36405433efe74 () mail ! gmail ! com> X-MARC-Message: https://marc.info/?l=kwrite-devel&m=122537703404139 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1921900597==" --===============1921900597== Content-Type: multipart/alternative; boundary="----=_Part_8487_28030630.1225376861612" ------=_Part_8487_28030630.1225376861612 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline I was thinking: does kate really need to do those stats at startup? According to Dominik, most of the info is cached, and the stat's are only to see "if anything changed". But imagine I'm opening a C file: Kate already knows that there is a C file highlight, and opens it, and then it notices that it is a new version -- no stat was needed for the other files. I think the stat would only be needed when opening a file for which kate didn't have an highlight, or when opening an highlight and kate notices it's missing, and that could be done only when needed, not at every startup. Ivo ------=_Part_8487_28030630.1225376861612 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline I was thinking: does kate really need to do those stats at startup?

According to Dominik, most of the info is cached, and the stat's are only to see "if anything changed".
But imagine I'm opening a C file: Kate already knows that there is a C file highlight, and opens it, and then it notices that it is a new version -- no stat was needed for the other files.

I think the stat would only be needed when opening a file for which kate didn't have an highlight, or when opening an highlight and kate notices it's missing, and that could be done only when needed, not at every startup.

Ivo
------=_Part_8487_28030630.1225376861612-- --===============1921900597== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ KWrite-Devel mailing list KWrite-Devel@kde.org https://mail.kde.org/mailman/listinfo/kwrite-devel --===============1921900597==--