PreParsed Include files

Started by Paul Squires, May 31, 2018, 02:00:13 PM

Previous topic - Next topic

Paul Squires

For the next editor update I hope to include code I am working on now that should make using the editor much faster. Currently, when files/projects are loaded, the editor parses the files and creates an in-memory database that holds all of the defined subs/functions, types, etc. As you can imagine, for larger projects on slower machines this parsing can result in a somewhat noticeable delay.

I am experimenting with the editor creating a metadatabase file that holds the names and last parsed timestamp. The editor loads, reads the parse metadata, and only re-parses those files whose timestamps have changed. I will only do this for files that reside in the compiler's \inc folder structure. So, basically we're looking at all of the Windows system files, Jose's Afx, and any other user defined includes that you store there. Any files that you have loaded in the editor itself will continue to be parsed as normal so changes to those files will be seen immediately and not just on program startup.

Hopefully this will make the editor experience a little better.

Oh, and the visual designer is still being worked on  :)


Paul Squires
PlanetSquires Software

José Roca

I will also suggest not doing any parsing at all if the "Enable codetips" option is unchecked. I never use codetips, yet I have to pay the price.

Paul Squires

Paul Squires
PlanetSquires Software

Paul Squires

Quote from: José Roca on May 31, 2018, 02:38:53 PM
I will also suggest not doing any parsing at all if the "Enable codetips" option is unchecked. I never use codetips, yet I have to pay the price.

I have attached 32/64 bit EXE's for you to try. If Codetips are disabled then the only thing parsed for are Subs/Functions (because WinFBE needs those for the Function List, etc).

You should see a noticeable speed improvement on larger projects.
Paul Squires
PlanetSquires Software

José Roca

Parsing seems to work fine. Loading shobjidl.bi no longer crashes the editor even when codetips are enabled.

But even with the codetips enabled, they aren't displayed. Neither using the previous version. I'm using Windows 10 now. Don't know if there is a relation.

Paul Squires

Thanks Jose.... yes, there are some codetip displaying issues. I did a lot of work in that area and screwed some things up :)
Paul Squires
PlanetSquires Software