Questions tagged [runtime]
The runtime tag has no summary.
71 questions
18 votes
5 answers
5k views
what does "runtime" mean in programming/software engineering?
I'm trying to understand what the term "runtime" means specifically in programming and software engineering. The more research i do into the term, the more it seems it could mean several ...
1 vote
3 answers
4k views
Is it possible to instantiate a template class at runtime?
Suppose I have two abstract classes called Color and Animal And I can create classes Green/Red/Blue derived from Color and classes Dog/Cat/Pig derived from Animal at runtime using factory pattern. ...
0 votes
0 answers
96 views
O(nlogn) + O(logn) =? [duplicate]
So I came upon this time complexity result and I was confused about it, it said that : O(nlogn) + O(logn) =O(log(n+1)) Why is that the case? Shouldn't the result be O(nlogn)?
1 vote
1 answer
179 views
Programs running under Slurm for > 24 hours are being killed by process management. What are good approaches in Python to work around this issue? [closed]
I often run data processing/machine learning/filesystem-scanning scripts that can take well over 24 hours to complete. For processes with arbitrarily low memory requirements, I can run without using ...
0 votes
2 answers
114 views
Small confusion about time complexity
Suppose we have a code: for(int i=0;i<n;i++) sum+=i; We say the time function here is: f(n) = n+1+n = 2n+1. The order of the time function is 1. So, our time complexity becomes O(n). But, for the ...
2 votes
1 answer
1k views
What are the pros and cons of adding SQL columns in run time, vs through a different design time architecture?
The company I'm currently working for has a feature in an enterprise app where a user can add columns to a table configuration on a web GUI through fields and a button, and a corresponding SQL table ...
2 votes
1 answer
3k views
How to parse a dynamically changing Json file? (c#)
So I know a little bit about parsing Json data but not too much so pardon if I am not describing everything as I should. Lets use this Json file as an example: { "firstname": "John", "...
1 vote
1 answer
98 views
Library with different runtime behaviour based on usage history (design question) [closed]
I want to design a hash table library that keeps usage statistics and based on how it is used will use different implementations at runtime. For example use a certain implementation for small size ...