Note that there are some explanatory texts on larger screens.

plurals
  1. POOptimize memory usage, code selection
    primarykey
    data
    text
    <p>I am working on a quite big project: The program has to do multiple tasks at the same time and each of them does hundreds of complicated calculations each second. The program has to be working 24/7. As I am not a proffessionnal programmer and I don't know how memory and CPU is handled by this kind of program, I request your help.</p> <p>The program has different functions to do during the week and than during the weekend. I know two languages pretty well, Python and C#.</p> <ol> <li><p>I need this application to be fast, so for the calculations I think c# will handle them more quickly.</p></li> <li><p>The program has to work 24/7 so I might think that a Python written project with several little scripts that call eachother for the multiples tasks working permanently, would work better than a Big C# code.</p></li> <li><p>How to write it the best way?</p></li> </ol> <p>I am thinking of writing it in pseudo-code like</p> <pre><code>// During the week function1 () { do { ... huge code and functions call here ... } while DateTime &lt; Friday 23:59 if DateTime = Friday 23:59 { function2() function1.close } } // During the weekend function2 () { do { ... different code and functions call here ... } while DateTime &lt; Sunday 23:59 if DateTime = Sunday 23:59 { function1() function2.close } } </code></pre> <p>What is the best approach for this problem? It is a quite large question but any kind advice is welcomed. Thanks</p> <p><strong>EDIT</strong> Question is: the program is quite complicated with hundreds of functions and calculations. I want it to be the fastest and lowest memory consuming. <strong>How to write it best</strong>?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload