Questions tagged [performance]
Questions related to improving application performance, this can be range from selection software architecture to selection of algorithms.
847 questions
-1
votes
1
answer
8
views
In dynamic programming, do switch-case statements perform worse than function tables?
The reason I wanted to ask is because of some code from Undertale that is responsible for choosing which dialogue set to use. It works something like this:
switch (id) {
case 0:
msg[0] = &...
13
votes
5
answers
3k
views
How do I find what's causing a task to be slow, when CPU, memory, disk and network are not used at 100%?
I'm currently analyzing a process that is considered too slow.
In summary, it's a task that loads a lot of data from Microsoft SQL Server, performs some basic stuff on it, and creates a report. It ...
5
votes
2
answers
325
views
Approach to figure out hardware requirements for a software based it's scale
We have softwares that specify minimum hardware requirements.
So, how to figure out what specs we need in case we want to scale up our systems.
Like I'm working on server performance monitoring setup ...
1
vote
1
answer
299
views
Best way to merge files in java [closed]
I have a task to merge set of files and each file contains words ( separated by new line ). Files contains words in sorted order. Once merged all the files, it needs to preserve the sorted order. ...
0
votes
2
answers
276
views
How can I write more optimal code keeping Javascript "shapes"/"hidden classes" in mind?
All optimising Javascript runtimes use "shapes" (SpiderMonkey term) or "hidden classes" so that instead of objects being treated as the dictionaries or hashmaps they can instead be ...
-1
votes
1
answer
150
views
Passing In-Memory Specification to Repository
I am working on my DDD know-what/how and have the following questions related to the Specification Pattern, the Repository Pattern, persistence agnosticism, and performance.
Consider, for the sake of ...
0
votes
5
answers
281
views
Best practice to save based on last record
I have a Web API in C# that receives data from various clients, which needs to be saved to the database. Each client sends data approximately every 10 seconds. To save this data, I need to base it on ...
-1
votes
2
answers
471
views
Text files vs. MySQL Performance for Large Dataset
I am currently making a system for users to generate flashcards for Languages.
This involves adding information such as the definition, pronunciation, and example sentences for a word.
So far, I have ...
2
votes
1
answer
436
views
Does it make sense to use a graph database (Neo4j) for a diagramming app?
I am developing a diagramming application and want to optimize operations with the Nodes and Relations of the diagram. Currently, I am using a relational database with tables for diagrams and nodes. ...
-1
votes
2
answers
147
views
How to handle complex logic, avoiding recalculation for performance reasons?
let's say we're building an Ecommerce Marketplace.
We have Sellers and each Seller has Products.
We want to display a list of available Products across all Sellers to Buyers.
But, we only need to ...
2
votes
2
answers
477
views
Game Systems Interaction Design
Intro
I'm writing an FPS game in c++. There is a timed game mode, players run around a map shoot from a variety of weapons which are either hitscan or projectile based, when a shot connects, based on ...
0
votes
5
answers
296
views
Load and process (compressed) data from filesystem in the blink of an eye
We have a huge amount of queries hitting our API that request a minor or major extract of some huge files lying around on our mounted hard drives. The data needs to be extracted from the files and ...
0
votes
2
answers
818
views
Explain 90th-percentile response time of 2 seconds when handling 200 concurrent connections per second
From Ch 12 (Resiliency) of the book "Building Microservices"
In the context of how much resiliency is too much resiliency
How long should various operations take? It can be useful to ...
6
votes
2
answers
2k
views
How to get out of a memory usage problem of a .NET application?
As mentioned in some StackOverflow posts (like this one), I'm dealing with a difficult situation:
My company is developing some C# applications (being a client-server application). We have migrated ...
0
votes
0
answers
54
views
Balancing logic placement in the domain and general perfomance of the system
I am writing my first application using DDD (in Node with TS) and I started writing all the domain first -- before starting the repositories/DB and then the application, while writing unit tests for ...