Pelles C forum

Pelles C => Bug reports => Topic started by: larryli on January 24, 2024, 02:57:52 AM

Title: "Scanning for dependencies" is too slow
Post by: larryli on January 24, 2024, 02:57:52 AM
I tried to build the latest LVGL graphics library (https://github.com/lvgl/lvgl/releases/tag/v9.0.0) with built-in Windows driver (https://docs.lvgl.io/9.0/integration/driver/windows.html).
There are no big issues during the build,except for a few compatibility warnings.
But the IDE show the "Scanning for dependencies" message, when I add the lvgl source file one by one. This is too slow, and it maybe unresponsive.
Title: Re: "Scanning for dependencies" is too slow
Post by: Vortex on January 24, 2024, 10:15:29 AM
Hi larryli,

The src folder of the zip file offering the source code contains 110 folders and 576 files. What's the speed of your processor?
Title: Re: "Scanning for dependencies" is too slow
Post by: larryli on January 25, 2024, 09:04:58 AM
Hi larryli,

The src folder of the zip file offering the source code contains 110 folders and 576 files. What's the speed of your processor?

Processor: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
Physical Memory: 16.0 GB (DDR4 1600 2x8GB)
SSD: 512GB (NVMe 1.4), System partition uses NTFS, and source files place to a ReFS volume
System: Microsoft Windows 11 Home (23H2)
Pelles C: 12.00
Title: Re: "Scanning for dependencies" is too slow
Post by: TimoVJL on January 25, 2024, 09:57:13 AM
Interesting file system you use:
Resilient File System (ReFS) overview (https://learn.microsoft.com/en-us/windows-server/storage/refs/refs-overview)
Title: Re: "Scanning for dependencies" is too slow
Post by: larryli on January 26, 2024, 07:08:56 AM
Interesting file system you use:
Resilient File System (ReFS) overview (https://learn.microsoft.com/en-us/windows-server/storage/refs/refs-overview)
I use the Dev Home App https://apps.microsoft.com/detail/9N8MHTPHNGVV (https://apps.microsoft.com/detail/9N8MHTPHNGVV), and doc at https://learn.microsoft.com/en-us/windows/dev-drive/ (https://learn.microsoft.com/en-us/windows/dev-drive/).
Title: Re: "Scanning for dependencies" is too slow
Post by: larryli on January 26, 2024, 07:13:47 AM
Complete project file. the simple project file was generated using the script, and it took the whole night to update the dependencies
Title: Re: "Scanning for dependencies" is too slow
Post by: John Z on January 26, 2024, 10:06:23 PM
Hi larryli,

So, 'slow' is relative - what system performed faster than Pelles?

Also have you tried moving the files to the common SSD NTFS file system and tried that?

John Z
Title: Re: "Scanning for dependencies" is too slow
Post by: larryli on January 30, 2024, 04:24:52 AM
Also have you tried moving the files to the common SSD NTFS file system and tried that?

There is no difference.
Title: Re: "Scanning for dependencies" is too slow
Post by: frankie on January 30, 2024, 09:15:54 AM
No way to reduce time.
The reasons are 2. This code has so many nested headers that the time delay is inevitable. My opinion: "it's good to slice code in many modules to make more efficient library use, but the sparse definitions in hundreds of headers and the heavy macro coding is too much for me" (polite for bad coding? probably, even for embedded programming almost all compilers have a 'separate segment by function' to avoid wasting program memory, so this proliferation of headers is not necessary).
The second problem is the PellesC browser that surely isn't designed for such a mess (here would help a lot the MSVC precompiled headers...).
A suggestion to not wait, open a cmd window in the project folder and try:
Code: [Select]
> POVARS32
>pomake /F lvgl-9.0.0.ppj
If you're compiling for 64bits:
Code: [Select]
> POVARS64
>pomake /F lvgl-9.0.0.ppj