Author Topic: Scanning 2-7 Mio files?!  (Read 3313 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Scanning 2-7 Mio files?!
« on: February 21, 2006, 09:03:33 am »
Dear all,
not really important, but it makes me wonder:
Working on a project I discovered some output in C::B's debug log like this:
[08:36:30.395]: Scanned 75986108 files for #includes, cache used 2290384, cache updated 2288344
[08:36:30.745]: Scanned 27933228 files for #includes, cache used 2290384, cache updated 2288344
[08:36:30.876]: Scanned 47034996 files for #includes, cache used 2290384, cache updated 2288344
[08:36:30.976]: Scanned 27960556 files for #includes, cache used 2290384, cache updated 2288344
...and so on.
Now I wonder: Does that really mean that so many files are scanned for includes?! My project consists of about 150 files, and includes maybe about 20 "default" C/C++ header files. How is this output to be interpreted?!
Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Scanning 2-7 Mio files?!
« Reply #1 on: February 21, 2006, 11:37:09 am »
Obviously not. :lol:

7 million files would take about 19.5 hours to be accessed (not counting the actual time to parse them).
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Scanning 2-7 Mio files?!
« Reply #2 on: February 21, 2006, 12:15:57 pm »
Obviously not. :lol:
Ok, because otherwise this would have been really, really impressive. Especially because after posting I realised that it's 20-70 millions files... :lol:
Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ