Skip to main content
Filter by
Sorted by
Tagged with
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 ...
Martin Brown's user avatar
  • 3,509
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 ...
Iqbal's user avatar
  • 1
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 = /...
safie ahmadi's user avatar
-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 ...
J-bob's user avatar
  • 9,172
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) { ...
swineone's user avatar
  • 2,960
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 ...
Harshaadhithya Kalaikumar's user avatar
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 ...
Anannyo Hridi's user avatar
-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 ...
Yegor Chetkin's user avatar
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 ...
Hind Bhr's user avatar
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 ...
Yongle's user avatar
  • 11
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 (...
seh33's user avatar
  • 182
-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 ...
Ciciinho's user avatar
-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 ...
0ro2's user avatar
  • 1,014
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 ...
Xu Shan's user avatar
  • 325
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/...
MC From Scratch's user avatar

15 30 50 per page
1
2 3 4 5
…
2665