User forums > Using Code::Blocks

Forrtran - Add Files Recursively is Slow

(1/5) > >>

FEA:
Hi, I noticed that if the project has about 200 files, "Add Files Recursively.." only takes a few seconds. If I increase that number to 600, it takes about 5 min. If I increase that to 1800 files, it takes about 40 minutes. So it appears that there is an exponential increase in time to read the files. All of those times are faster on another computer, but that was a baseline for a laptop.

Is there any way to reduce the time it takes to read files in? I think splitting it into multiple directories can work, but I am wondering if there is something that can be done at a more fundamental level? This is a big bottleneck for the project.

BlueHazzard:
Do you have to import this many files so often?

Do you have the possibility to write the paths to the files in a text file (i have a script, that imports files from a text file, i would like test it)

Have you disabled plugins and tried again (specially code completion)?

FEA:
In my case, there have been a lot of issues due to the large number of files. So in attempt to resolve that, I have had to go through the process dozens of times (including crashes, etc.). But after its resolved, it is less of a problem. The major problem is the project is to be worked on by multiple people and some of them may be turned off by this.

Yes, I have a VBA program that can write the full path of filenames to a text file. So I would be interested in your script. That may be the best solution if it is quick.

I disabled the code completion plugin, but it did not help. I tried to disable the plugins one-by-one, but it crashed about half way through. Then I removed the plugins from the plugins folder, but could not start a project to test it. Do you know what the minimum required plugins are required to start a project?

BlueHazzard:
This is the script http://wiki.codeblocks.org/index.php/Some_examples#Add_files_from_a_text_file_to_the_active_project

I think the compiler plugin and the sriptedWizard plugin are probably the most basic two...

oBFusCATed:
I doubt disabling plugins would help.
It would be best if you can make a project which is shareable and which is similar to the project you are working on.
I could profile it and try to improve the performance. I doubt it would be hard.

p.s. It will be good if you could report any crashes you encounter.
p.p.s. Don't disable the ThreadSearch plugin. It is known to cause crashes.
 

Navigation

[0] Message Index

[#] Next page

Go to full version