Tag Info

New answers tagged

2

Microservices incur a penalty in both performance and complexity that is usually traded off in order to be able to scale out more easily (adding more instances of various microservices independently). If you're building a small system, avoid the runtime and cognitive overhead by just building out your app as a "monolith". (a terrible word that people now ...


1

Please don't follow the advice in that article. The author is correct to advocate immutable objects. But to get the advantages of immutable objects, the object should be transitively immutable. That is, it should only keep references to other transitively immutable objects. It shouldn't be referencing data providers, and it certainly shouldn't be keeping ...


0

What matters the end-user? Performance Features / Functionality Design Case 1: Optimized bad code Hard maintenance Hardly readable if as an open-source project Case 2: Non-optimized good code Easy maintenance Bad user experience Solution? Easy, optimize performance critical pieces of code e.g.: A program that consists of 5 Methods, 3 of them ...


0

You can write ugly code that is very fast and you can also write beautiful code that is as fast as your ugly code. The bottleneck will not be in the beauty/organization/structure of your code but in the techniques you chose. For example, are you using non-blocking sockets? Are you using single-threaded design? Are you using a lock-free queue for inter-thread ...


2

There are a couple different ways you might deal with long running blocking tasks: Increase the number of workers. As long as CPU utilization in staying low, additional workers will allow you to more quickly dispatch these long running service calls. More workers only becomes problematic at the point that some resource is under contention (cpu, memory, ...


4

In the examples you provided there is most probably no difference, since all the necessary conversions will most probably be performed at compile time. The following will incur a slight performance penalty: if( floatVariable > intVariable ) The penalty will be of the order of an additional clockcycle. (Maybe two? three clock cycles at most? that's ...


1

The only time I think format matters is with dynamically downloaded code - ie things like javascript where huge blocks of comments and/or very long variable names will slow down the download, but even then this does not affect the compile time. (and the download time can be fixed by minimising the javascript file). For compiled files, the source is just a ...



Top 50 recent answers are included