Questions tagged [runtime]

Runtime is the time during which a program is running (executing)

In computer science, run time, run-time, runtime, or execution time is the time during which a program is running (executing), in contrast to other phases of a program's lifecycle such as compile time, link time, load time, etc.

A run-time error is detected after or during the execution of a program, whereas a compile-time error is detected by the compiler before the program is ever executed. Type checking, storage allocation, code generation, and code optimization are typically done at compile time, but may be done at run time depending on the particular language and compiler.

Related

7799 questions
2
votes
0 answers

Inconsistency of Igor Ostrovsky's Example 2 in his blog "Gallery of Processor Cache Effects" for Apple M1 Silicon CPU

I replicated the Example 2 mentioned in the Igor Ostrovsky's blog "Gallery of Processor Cache Effects" using a minimal reproducible example (MRE) as to measure the runtime for each K. The K in the blog is same as the variable STEP in the following…
Deepak Tatyaji Ahire
  • 4,883
  • 2
  • 13
  • 35
2
votes
1 answer

optimise zarr array processing

I have a list (mylist) of 80 5-D zarr files with the following structure (T, F, B, Az, El). The array has shape [24x4096x2016x24x8]. I want to extract sliced data and run a probability along some axis using the following function def…
Nad
  • 21
  • 1
2
votes
2 answers

Reducing run-time of Google OR-tools python script (using Google Cloud)

I'm developing a nurse scheduling program in Python for one of the departments of the hospital I work with. Various examples of such programs already exist and are shared online. One of these is the following:…
2
votes
2 answers

Sorting algorithm with quadratic and linear runtime

Is it possible to make a sorting algorithm That its running time at worst case is quadratic => n^2 But in most cases (That is, on more than half of the n-size inputs) the run time will be linear => n ?? I was thinking about Radix Sort and just make…
daniel
  • 143
  • 5
2
votes
1 answer

What if the run time gets dwarfed by the compile time?

There may be some situations where the compilation process takes more time than the program's run time. What should one do in those circumstances? If we consider CGI scripts where it may be called hundreds or thousands of times every minute then…
Chankey Pathak
  • 21,187
  • 12
  • 85
  • 133
2
votes
1 answer

Groovy metaClass override java.time.Year static method now() but productive code is not using the overriden behaviour of now() at runtime

I attempted to override the java.time.Year class's public static method now() because I want it to return a different value, not just the current year. In my productive code, I have a method which I am testing and it is using the Year.now() method…
Patrick
  • 21
  • 1
2
votes
4 answers

How to fix class function behaviour based on initialization parameters

I am creating a C++ class which takes certain parameters during initialization and has some functions based on its private variables, something like the compute function here: class A { public: A(int x){ a = x; } int compute(int…
sgp
  • 1,738
  • 6
  • 17
  • 31
2
votes
2 answers

Code to create Persistent Field components associated with TDataSet

Looking for some example code illustrating how to create at runtime TField Components associated with a dataset. In the IDE, if you plop down a dataset component, right-clicking brings up the fields editor that provides this functionality at design…
Vector
  • 10,879
  • 12
  • 61
  • 101
2
votes
4 answers

What's the deal with functions in the Microsoft C Runtime library?

This page on the MSDN seems to list a bunch of file operations that behave more or less exactly like condensed versions of the three functions used in this example. What's the purpose of these non-standard run-time functions that do things functions…
Stuart P. Bentley
  • 10,195
  • 10
  • 55
  • 84
2
votes
1 answer

Is my runtime estimate correct for this algorithm in Python?

The code below is for a challenge that I did recently. I estimate the runtime of this function to be O(n^2) but I am a bit unsure if that is indeed correct, as the if statement line is somewhat expensive and I don't know to what extent should I…
user14381762
2
votes
1 answer

Java ShutdownHook not working as I expect it to

What I'm trying to do is run some code in a while(true) loop, then when I hit the terminate button in IntelliJ or control c, a second block of code runs that cleanly terminates and saves all of my progress to a file. I currently have the program…
2
votes
1 answer

Complexity does not match the actual growth of the runtime?

I've been doing a homework sheet for a while now, and there is a massive discrepancy between what I think the asymptomatic complexity is and what the runtime result suggests. Below is a table for the runtime for the program. | Input Size | …
user13738871
2
votes
1 answer

How to use quarkus.kubernetes-config.secrets.enabled in application.yml?

I'm struggling at having secrets read using application.yml. When I do: quarkus: application: name: pi-quarkus-fund-persistence-service kubernetes-config: enabled: true fail-on-missing-config: false …
2
votes
1 answer

How do I capture the type of Generic object in an ObservableCollection?

I have a method that returns an ObservableCollection on any type say ObservableCollection ObservableCollection ObservableCollection i want to be able to capture the Type (Type1, Type2, Type3) of that at run-time when that how…
user677607
2
votes
0 answers

How to load C++ dlls of the same name in C# project

I have two C++ WinApi(only x64 arch) dlls of the same names, which contain API of some project, for example C:\first\MyDll.dll and C:\second\MyDll.dll. I can't rename it in my case. So they can't be loaded in Reference Manager beacause they have the…
Artem
  • 21
  • 2
1 2 3
99
100