Author Topic: Forrtran - Add Files Recursively is Slow  (Read 833 times)

Online oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12625
    • Travis build status
Re: Forrtran - Add Files Recursively is Slow
« Reply #15 on: May 22, 2020, 10:40:58 pm »
Can you list machine specs and times, so we have some kind of a reference?
My tests are done on a AMD Ryzen 7 1700, which isn't the fastest cpu on the planet, but it isn't slow either :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline FEA

  • Multiple posting newcomer
  • *
  • Posts: 19
Re: Forrtran - Add Files Recursively is Slow
« Reply #16 on: May 22, 2020, 11:19:01 pm »
From what I can see, the processor was not maxed out, but it may still be the bottlneck?

Fastest = Intel Core i7 870 2.93 Ghz, 8GB RAM
Slowest = Intel i5 M460 2.53 Ghz, 6 GB RAM

Maybe these are ancient by today's standards? I tend to need faster disk speed and CPU power isn't a high priority for me. That said, I have been thinking about upgrading both desktop and laptop. The setup time on a new computer takes such a long time (may configurations) that I try to avoid this until necessary.
« Last Edit: May 22, 2020, 11:20:40 pm by FEA »

Online oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12625
    • Travis build status
Re: Forrtran - Add Files Recursively is Slow
« Reply #17 on: May 22, 2020, 11:48:04 pm »
I wanted the specs just for reference.

p.s. What OS and C::B version are you running?
« Last Edit: May 22, 2020, 11:49:49 pm by oBFusCATed »
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline FEA

  • Multiple posting newcomer
  • *
  • Posts: 19
Re: Forrtran - Add Files Recursively is Slow
« Reply #18 on: May 23, 2020, 12:15:28 am »
Windows 10 and C::B 20.03 for both.

Offline darmar

  • Multiple posting newcomer
  • *
  • Posts: 59
Re: Forrtran - Add Files Recursively is Slow
« Reply #19 on: May 23, 2020, 06:10:39 pm »
@darmar: It seems that you're parsing every file on at the moment it is added. I suppose it is better just to schedule the file for parsing and do this in another thread or onidle.

@oBFusCATed: you are right. I will think about how to move this parsing onto a separate thread.

Online oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12625
    • Travis build status
Re: Forrtran - Add Files Recursively is Slow
« Reply #20 on: May 23, 2020, 08:03:47 pm »
You don't need to move the parsing on a separate thread.
You can do it on the main thread, but just do it on an idle even.
To limit its impact you can time limit it - say you do parsing for 10ms and then stop and wait for the next idle event.
This will be a lot simpler than going the separate thread. It seems parsing fortran is really fast :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]