Linked Questions

7 votes
5 answers
17k views

We needed a persistent storage for API keys and I came up with reading and writing json in plain text and the user thinks it works but is it very ineffecient compared to a relational dbms? I just ...
Niklas Rosencrantz's user avatar
6 votes
2 answers
14k views

This is a question that lives in my mind from a long time. Does the use of multiple nested conditional statements impact the performance of a taken code? So far I know that programmers have created a ...
Aluminum's user avatar
  • 201
1 vote
4 answers
556 views

Do you write your code then optimise it? Or do you write an optimised code from the beginning. I always believe in writing optimised since I really dont like to rewrite code, But please share your ...
saadlulu's user avatar
  • 121
0 votes
2 answers
5k views

I am writing a C++ applications in the embedded area. A lot of times I think about should I use static or non-static const variable in the functions/methods? Here are my thoughts: Static constant ...
VP.'s user avatar
  • 139
3 votes
3 answers
1k views

In a case where multiple variables are set equal to an operation using the result of an other operation, is it best to create a temporary variable for the result of the second operation (this would ...
jhschwartz's user avatar
2 votes
3 answers
4k views

I have a C-coded function that realizes a very long calculation on a microcontroller. I try to optimize it for speed at the moment. The function content is created automatically using Mathematica. It ...
theNewOne's user avatar
0 votes
3 answers
3k views

I'm trying to decide who is right in the following argument: How to effectively process data in MSSQL? Which one is faster? Opinion 1: Data requests (this is especially true for complex ones) should ...
stevie's user avatar
  • 225
0 votes
1 answer
276 views

Which of these two is the better way of doing the same thing - public void someMethod(String s, boolean bool02){ boolean bool01 = s!=null; if(bool01==bool02){ doSomething(); } } OR public void ...
user3344591's user avatar
1 vote
4 answers
304 views

As a rookie programmer, I've only recently been digging into benchmarking, and have been comparing various ways of accomplishing the same task in terms of speed. Most of the time, the result is ...
RalphD's user avatar
  • 21
-3 votes
2 answers
156 views

I have a piece of code where I need to assign a value to a variable, but base on condition, it could take other values. It can be done in multiple ways, but need to know which would be preferred in ...
Sachin Gupta's user avatar
-1 votes
1 answer
94 views

While writing python code (I write python-selenium for GUI automation), I am facing situations wheer I have to deal with 5 widgets that do the same thing, just there xpath is differs by one term. # ...
Ulysses's user avatar
  • 101
-1 votes
1 answer
70 views

I want to implement two methods: AddPlayers and AddPlayer. Is it better when AddPlayers calls AddPlayer or AddPlayer calls AddPlayers with a single item array? Is there a significant difference in ...
Konrad's user avatar
  • 1,569
1 vote
0 answers
43 views

I wasn't sure exactly how to word this question, but basically, I have a struct stNeuralLayers (for a neural network I'm playing around with) with fields that are matrices (such as a double[,] ...
Tara's user avatar
  • 151
306 votes
17 answers
115k views

A colleague of mine today committed a class called ThreadLocalFormat, which basically moved instances of Java Format classes into a thread local, since they are not thread safe and "relatively ...

15 30 50 per page
1
2 3 4 5
7