Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 40065

Questions related to improving application performance, this can be range from selection software architecture to selection of algorithms.

1 vote

Is a transaction time of <10ms for an SQL database viable? If so, under what conditions?

So in principle you might use a top500 supercomputer where your performance is achieved. …
Basile Starynkevitch's user avatar
8 votes

Is it bad practice to write code that relies on compiler optimizations?

In practice C++ programs are expecting some compiler optimizations. Look notably into the standard headers of your standard containers implementations. With GCC, you could ask for the preprocessed fo …
Basile Starynkevitch's user avatar
4 votes

Create machine-readable logfiles

You could log to some sqlite database (or find some specialized logging library, there are many of them). You could decide for a more structured format of your log file. For example, use JSON, YAML, …
Basile Starynkevitch's user avatar
0 votes

High Performance Garbage Collection

Copying generational garbage collectors in practice performs usually well (read about Cheney's algorithm, then read the GC handbook), and favors quick allocation and en masse disposal of young, tempor …
Basile Starynkevitch's user avatar
1 vote

How do programs written in higher languages take advantage of “dynamic execution” present in...

It might worth to recompile your (or some free software) source code when upgrading your processor, but you'll usually only win a few percents of performance in doing so. …
Basile Starynkevitch's user avatar
2 votes
Accepted

Designing database for a table with huge number of rows

You could use sqlite. It can store a lot of rows and work on many operating systems (Windows, Linux, Android, MacOSX). You could consider installing and using some Linux system on that single PC and …
Basile Starynkevitch's user avatar
25 votes

How efficient is malloc and how do implementations differ?

If you care only about efficiency, here is a standard conforming and very efficient implementation: void* malloc(size_t sz) { errno = ENOMEM; return NULL; } void free(void*p) { if (p != NULL) …
Basile Starynkevitch's user avatar
54 votes
Accepted

What is a realistic, real-world, maximum size for a SQLite database?

Of course SQLite performance depends (like all SQL databases) a lot of the number and width of tables, their indexes, the SQL queries involved. …
Basile Starynkevitch's user avatar
1 vote

Should I always store parsed data in database before manipulating?

(since you code in PHP, I am guessing that the Excel file is uploaded in some browser, so is coming from the Internet; if it is not the case, ignore my answer) Is it better practice to store the p …
Basile Starynkevitch's user avatar
2 votes

How to facilitate thread-safe access to large set of shared variables?

There is of course a performance penalty, but it is probably much lower than using explicit mutexes (à la std::mutex). …
Basile Starynkevitch's user avatar
36 votes

In software programming, would it be possible to have both CPU and GPU loads at 100%?

It is not related to game programming. Some scientific code can also use both the GPU and the CPU. With careful -and painful- programming, e.g. by using OpenCL or CUDA, you could load both your GPU a …
Basile Starynkevitch's user avatar
0 votes

Best approach to write on a database with two webservers

The database can only hold 1 write concurrently and does not support transactions Lack of transaction is the main issue. I would suggest: If possible, update to a different RDBMS capable of tra …
Basile Starynkevitch's user avatar
10 votes

Can we make general statements about the performance of interpreted code vs compiled code?

Can we make general statements about the performance of interpreted code vs compiled code? Programming languages are specifications (written in some report, such as R5RS or n1570). … They are not software, so it does not even make sense to speak of performance. But some programming language may have several implementations, including interpreters and compilers. …
Basile Starynkevitch's user avatar
3 votes

How to benchmark software performance under same conditions (RAM, CPU caching etc)?

When used properly, they could improve overall performance. And it seems that you are reinventing csplit(1) or split(1). Why are they not enough for your needs? … I can't imagine a situation where such a splitting performance matters a lot (to the point of justifying several days of your work time). You need to explain your context, and motivate it much more. …
Basile Starynkevitch's user avatar
5 votes
Accepted

In Qt or C++, is there a good means for creating a switch with dynamically generated cases, ...

Regarding performance, try several ways and measure i.e. benchmark them (don't forget to enable optimizations in your compiler), and choose the best. …
Basile Starynkevitch's user avatar