1,420 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
46
views
Trouble Capturing Audio from INMP441 MEMS Microphones via I2S on Tang Nano 9K FPGA
i’m working on a project where I’m reading two INMP441 MEMS microphones that share the same I2S lines. I’ve connected one microphone’s LR pin to VCC and the other to GND, so they correspond to left ...
4
votes
1
answer
70
views
Strange scipy.interpolate.RegularGridInterpolator timings
I am facing some strange timings with the RegularGridInterpolator from scipy.
Splitting the interpolation into 100 chunks and concatenating the final result seems to be faster for large arrays:
When ...
0
votes
0
answers
55
views
Parallel Equations Expansion in TFORM
TFORM is considered a great tool for manipulating large and symbolic equations. In this thread, I’d like to share my optimization problem, which concerns a very simple operation — equations expansion.
...
0
votes
1
answer
57
views
Grouping two actions on a RealityKit Entity with different durations
Yet another RealityKit question.
I have a player Entity whose movements throughout the world model I want to be able to script. I've managed to translate the simple SceneKit actions to RealityKit, ...
-2
votes
2
answers
135
views
C# Least resource/processor intensive for accurately blocking thread over short periods of time
I'm developing a console application that periodically executes two threads: one for a tickEvent function and another for updating the console display. Currently, each thread simply blocks on a ...
0
votes
1
answer
46
views
Improving JavaScript Refresh Rate Estimation with `requestAnimationFrame` [duplicate]
I've written a simple JavaScript function to estimate the screen's refresh rate using requestAnimationFrame:
let frameCount = 0;
let startTime = performance.now();
let refreshRateEstimate = 0;
...
0
votes
1
answer
72
views
Dictionaries, new dictionary typing, and their operating speeds
I just discovered Godot introduced Dictionary type-casting in v4.4, and I decided to play around with it a bit. I was curious whether using type-cast dictionaries would be more or less efficient time-...
4
votes
1
answer
216
views
Why is calling clock_gettime with CLOCK_THREAD_CPUTIME_ID relatively expensive compared to other clock types?
When I run my code to measure how much time a program thread spends in CPU (both user and system) I use the API such as
struct timespec start,
end;
clock_gettime(...
2
votes
0
answers
59
views
Authentication TLV implementation on linuxPTP stack
I was taking a look at the authentication TLV implementation for linuxPTP stack.
If I understand correctly, once you configure two nodes and if you provide a pair of keys to the two nodes, ...
0
votes
2
answers
76
views
How can I extract the data from profvis in R?
I'm using profvis to profile my functions in R, but I want to extract specific timings for subfunctions. For example if I run
a = profvis({ dat <- data.frame(
x = rnorm(5e4),
y = ...
0
votes
2
answers
83
views
In bash, how can an explicitly forked process determine that it was explicitly forked (versus, say, run in a subshell)?
Im working on a bash profiling tool called timep that gives per-command runtime profile for bash scripts and functions. It does this using a DEBUG trap to record start time and stop time for each ...
1
vote
0
answers
133
views
How to waste a few CPU cycles without causing any memory accesses
I'm looking for a low-overhead method for my program to stall a few cycles on an Intel CPU, without causing memory accesses or side effects that could alter the CPU components' data (e.g. no usleep())....
1
vote
1
answer
107
views
Why is fifelse faster than checking a subset in data.table?
I'm comparing the speed difference between these two methods of updating a column on a data table (for testing, the flag column is 50% TRUE, 50% FALSE):
A[flag==TRUE,b:=b + myfunc(a,b)]
A[,b:=b + ...
1
vote
2
answers
98
views
Why is there such large variation in computation time for Fibonacci generation between adjacent values of n?
Each method is getting large variations in computation time, even with lots of repeats (to obtain a mean). The effect appears to get worse with larger n.
This is my timing code.
def timeBlock(func, n,...
0
votes
1
answer
75
views
JS function works only when hard refreshing page
I'm sure this has something to do with the timing of things loading, but I can't figure it out.
I'm using Oracle's Jet charting libraries and trying to convert the y-axis to a percent
When I run this ...