All Questions
Tagged with linux performance
32 questions
2
votes
0
answers
96
views
MIDI router in Rust
I am working on a small MIDI router application for the Jack audio connection kit in Rust. The goal of the application is to route MIDI signals from an instrument to one or multiple applications in ...
2
votes
1
answer
274
views
Multiply two huge base-10 numbers in assembly
This post is a second part of my original post, Add two huge base-10 numbers, which deals with adding two huge base-10 numbers. However, in this case, I'm multiplying two non-negative whole numbers. ...
5
votes
1
answer
148
views
Add two huge base-10 numbers
This is some assembly code I've written to add two base-10 numbers. The input and output are represented as null-terminated ASCII strings, with digits in big-endian order.
I have also provided ...
11
votes
3
answers
2k
views
Remove leading zeroes from the beginning of a string
I want to remove leading zeroes (for a big integer library I'm currently making) in numbers represented as char arrays.
I chose assembly for speed, but in order to simplify making the algorithm and ...
1
vote
2
answers
580
views
Bash script (to be used as a login MOTD message) that displays status of docker-compose projects, and individual docker containers
This is for a cheap VPS I use for personal projects. I like having a message of the day displaying system info on login; I wanted to add the status of my docker containers to it, to see if all are ...
1
vote
1
answer
83
views
Watch for file changes in Linux
I have installed Geekworm x735 on my Raspberry Pi, it uses the script below with an infinite loop to determine if the power button has been pressed. I know there are some Linux utils that watch for ...
1
vote
1
answer
99
views
Utilizing idle socket server to do meaningful thing (timeout after sleep on epoll_wait)
I write an app server that uses TCP socket on Linux. When there is no traffic (no data is sent by client, no client connect() or ...
1
vote
1
answer
195
views
Getting 6000+ substrings from large a large string
I have a class that opens a text file and reads out its content.
This class has a member function that will extract a substring between two given delimiters.
My application needs to extract between ...
2
votes
1
answer
73
views
Reproduce Linux move command in C
I have the following code, made in C language, which reproduces the functionality of the mv (move) command from linux. The problem is that the code is very inefficient. How I can optimize or make the ...
14
votes
2
answers
3k
views
malloc() and free() for Linux with system calls
I have written an implementation of malloc() and free() for Linux using the sbrk() system ...
6
votes
2
answers
2k
views
Loading records from an XML file into SQLite
I have a script and I need to optimize it to reduce the execution time of this, currently, 6000 lines takes 1 minute and 38 seconds, I would like to reduce the time to take much less and I do not know ...
2
votes
1
answer
185
views
Massive IP2host scanner
I'm writing a "IP2host" resolver. Basically all it does is a NSLookup and output's all domain's on the IP. I'm trying to run this on a world scan that's 40M+ lines of IP's.
I have used basic ...
2
votes
0
answers
1k
views
Optimize platform independent GetTickCount()
I used this method as a platform independent tick counter. Unfortunately, it consumes ~10 % cpu time in one of my methods. Is there a faster way to solve the issue?
...
3
votes
1
answer
146
views
CSV Splitter in Bash
I am splitting a csv file where the first 3 columns will be common for all the output files.
input file:
...
7
votes
1
answer
612
views
Convert size_t to big endian on Linux
I see that on Linux there are various built-in functions to convert endianness for specific integer width types, and they are probably faster than anything one can write and compile on their own. But ...