39,972 questions
2
votes
0
answers
83
views
What is the fastest way to evaluate a cubic given 4 packed double coefficients in a YMM register?
I have a YMM register containing 4 packed double coefficients. I want to compute the cubic equation that they represent as quickly as possible using SSE and AVX2 intrinsics. Only throughput matters I ...
0
votes
0
answers
24
views
performance optimization in nextjs
i have 10k+ lines of global css in nextjs project , Does this Effect LCP as in mobile i have tried a lot for optimization like added priority for LCP images added Lazy loading for other components but ...
0
votes
0
answers
26
views
Iβm seeing a mismatch between builds: Release gives the physically correct curves, while Debug diverges..Flags: Release = /O2/Qsave ;Debug=/Od /Qsave [closed]
Iβm seeing a mismatch between builds: Release gives the physically correct curves, while Debug diverges.
Flags: Release = /O2 /heap-arrays0 /warn:interfaces /real-size:64 /Qsave /check:none; Debug = /...
-1
votes
1
answer
128
views
Efficiency difference between different ways of finding min & max in a Java list
I've found questions similar to this one, such as this but I haven't found one answering this exact question. I have a list of numbers and I want to iterate through them to find the minimum and ...
4
votes
0
answers
109
views
"Repacking" 64 to 40 bits in AVX2
I have an array of 64-bit words, which I need to compact by removing the most significant 24 bits of each 64-bit word. Essentially this code in pure C:
void repack1(uint8_t* out, uint64_t* in) {
...
2
votes
1
answer
126
views
How to enforce per-passenger maximum ride time as a soft constraint in OR-Tools VRP?
Iβm working on a Vehicle Routing Problem using Google OR-Tools.
The context is that each βcustomerβ (or passenger) has to be picked up and eventually delivered to a common destination (for example, a ...
0
votes
0
answers
26
views
how to implement a room rate availability calendar? Like the one in booking.com [closed]
I'm trying to implement a room-rate availability calendar used in hotel management for managing different types of rooms, their availability during selected date range and also their prices. It looks ...
-1
votes
0
answers
53
views
No convergence while trying to train sampler using RL [closed]
I am trying to replicate the technique from this paper (https://arxiv.org/pdf/2305.13301) on a simpler case. I want to fit the gaussian mean using the RL technique, but the algorithm fails to converge ...
1
vote
0
answers
29
views
How can you use GRASP to solve a bi-objective optimization problem (in assembly line balancing)?
My problem is:
I have to optimize my collaborative assembly line with solving a bi-objective optimization model using metaheuristics. We chose to start with GRASP.
The two objectives are to minimize ...
1
vote
0
answers
31
views
How to suspend the rendering thread in UE4?
The mobile platform I'm using in my current UE 4.27 project has low performance, so I'm considering whether I can pause the rendering thread and release the rendering resources in the scene when the ...
3
votes
2
answers
184
views
Why is manual (-ish) computation of log-sum-exp faster than NumPy/SciPy functions?
Iβm working with a very large array and was surprised to find that manually computing the log of the sum of exponentials is actually faster than using the built-in functions for this task from SciPy (...
-5
votes
2
answers
86
views
Is there a better way to find matching endings in two strings? [closed]
I have this function, it's supposed to take two strings and return up until when their endings stop matching, so if you put in something like "brasileiro" and "engenheiro" it ...
-3
votes
2
answers
245
views
Is there a better way to keep ids in a vector sequential in C++?
I have a simple C++ program that manages as a todo list. The Todo, class contains a vector of Item to track each todo action and their id. The key constraint is that the ids must be kept strictly ...
0
votes
0
answers
88
views
How to make parallel within the parallel?
Right now I am running a model optimization to optimize one set of parameter for several sites (in total 47 sites, i.e. the cost function sum over these 47 results). Site computation is independent ...
3
votes
0
answers
236
views
Iterating over special semiprimes
For a project of mine related to prime counting, I am interested in iterating over special kind of semiprimes.
For a given n, I want to iterate over semiprimes k=pq with the following properties/...