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
2 answers

Big O notation - python function

What is the Big O notation of this function (as a function of n = len(lst)): def foo(lst): jump = 1 total = 0 while jump < len(lst): for i in range(0, len(lst), jump): total += i jump = jump * 2 return…
2
votes
1 answer

Numba bytecode generation for generic x64 processors? Rather than 1st run compiling a SLOW @njit(cache=True) argument

I have a pretty large project converted to Numba, and after run #1 with @nb.njit(cache=True, parallel=True, nogil=True), well, it's slow on run #1 (like 15 seconds vs. 0.2-1 seconds after compiling). I realize it's compiling byte code optimized for…
Matt
  • 2,602
  • 13
  • 36
2
votes
1 answer

How to re-run a piece of code if it hangs for more than x seconds?

I have a piece of code whose execution time varies. Some time it takes 5 seconds, other times it could take much longer. I want to put a time limit such that if execution time hangs for more than 5 seconds, then interrupt and re-run the code (and…
Emman
  • 3,695
  • 2
  • 20
  • 44
2
votes
2 answers

What does it mean to say "Function Calls are Resolved at Compile Time"

I am trying to understand the meaning of the saying "Function calls are resolved at compiled time". I know about the concept of polymorphism and there i know that virtual functions are called(or resolve or whichever is the correct phrase i don't…
user16783784
2
votes
1 answer

Runtime of Sorting-Algorithms gets faster (in Java)

Sorting-Algorithms get faster (in Java)?! I have implemented some Sortingalgorithms and a method getNanoTime which gives the NanoTime of this Sorting-Algorithm. I wanted to calculate an average-value. I recognized that the average-times are…
codefinn
  • 31
  • 3
2
votes
2 answers

Simple way to install Ruby with gems on a customer site

What's the simplest way -- ideally a single click -- to set up a ruby (not rails) runtime environment on a local Windows system (not a web site), with specific gems? I have code for a customer that runs on their local system. I've been sending them…
David Lewis
  • 190
  • 1
  • 8
2
votes
2 answers

VB6, ActiveReports, and CanGrow property

I've got an ActiveReport which has a textbox populated at run time. The "cangrow" and "multiline" properties are both set to "true". When I run the report on my machine, the report prints out fine with all of the text set at run time. IE: "Dear…
user724198
2
votes
1 answer

.NET Runtime 2.0 Error in a windows application

I have a Windows chat application that uses XMPP protocol. My problem is that, when the program in running on our testing machine, it gets closed intermittently. In the 'Application Log' in 'Event Viewer', I found, Faulting application MyApp.exe,…
Anu
  • 127
  • 3
  • 12
2
votes
1 answer

Matlab App built in runtime 9.10 runs significantly slower in runtime 9.7

I have an app I wrote in Matlab app designer, built in Matlab 2020a (v9.10 runtime environment). I have to compile it in v9.7 runtime though. When I do this it runs significantly slower. The function that runs the slowest is, conceptually: Output =…
Sam
  • 93
  • 5
2
votes
2 answers

How to minimize the unacceptably long run time of the created R code

There is a code with three for loops running with data containing enough missing values. The major problem is with the unacceptably long run time which seems to take at least more than a month although I try to keep my PC opened during most of the…
Eric
  • 528
  • 1
  • 8
  • 26
2
votes
1 answer

Cloud Build fails with timeout when build starts with Fetch instead of Pre-Build Pack.How to make Cloud build run from Pre-Build Pack instead of fetch

My gcloud app deploy fails due to timeout during build. After looking at logs, its taking more than 10 min and the App Engine Standard timeout can't be changed. But the previous all my builds went fine and the only change I noticed between…
Haaru
  • 23
  • 1
  • 5
2
votes
1 answer

Creating custom MySQL servers in VB.NET at runtime

I was wondering if it is possible to create custom MySQL servers in VB.NET while working in visual studio at runtime so that if the server already exists it connects and if it isn't there, the code creates the server. I have searched for this…
2
votes
1 answer

Why is my runtime command ignored after calling a batch file?

public class Test_Python { public static void main( String[] args ) throws IOException { String command = "cmd /k start cmd.exe /k \"cd C:\\Workspace\\supply\\environment\\ && setup.bat && python -V "; …
Gustus
  • 21
  • 2
2
votes
3 answers

How to ensure correct 'requires' definition of a Delphi run-time package from within a design-time package when creating an installer

I am creating an installer for components that currently do not have one (for example the excellent SynEdit editor library), this has also allowed me to get to understand design and run-time packages better than I did. I want to ensure the cleanest…
Brian Frost
  • 13,334
  • 11
  • 80
  • 154
2
votes
1 answer

typeid vs std::is_same vs if constexpr

I'm confused by these three things. Here is a simple example: template void func(T t) { if (typeid(T) == typeid(int)) { std::cout << "f - int" << std::endl; } else { std::cout << "f - other" << std::endl; …
Yves
  • 11,597
  • 17
  • 83
  • 180