Skip to main content
Filter by
Sorted by
Tagged with
1 vote
2 answers
54 views

I have a grid/tile view implemented like below: struct Grid: View { let size: Int var body: some View { LazyVStack(spacing: 0) { ForEach(0..<size) { _ in row } }...
Radioactive's user avatar
0 votes
0 answers
50 views

I am currently working on a Python based Gen AI project that requires the efficient deployment and serving of multiple LLMs specifically models with different parameter counts ( Llama-2 7B and Mistral ...
Amira Yassin's user avatar
-3 votes
0 answers
56 views

Suppose we have an 𝑚*𝑛 grid, let 𝑖=0,...,𝑚−1 and 𝑗=0,...,𝑛−1. For each grid point we have an array 𝑆𝑖𝑗 of size 𝑁 that serves as local score function. We want to to find a way that assigns ...
Peter Wu's user avatar
  • 279
Best practices
3 votes
5 replies
139 views

I’m trying to efficiently read about 10 million rows (single column) from a database table in Python and I’m not sure if my current approach is reasonable or if I’m missing some optimizations. ...
sandeep gajula's user avatar
Best practices
3 votes
4 replies
146 views

The main use of std::is_trivially_copyable_v[1] is to determine if an object array copy/move can be safely and efficiently replaced by std::memcpy. However, C++26 introduces std::...
xmllmx's user avatar
  • 44.6k
1 vote
1 answer
75 views

Using Power BI directQuery to databricks SQL warehouse, I see the queries getting generated to compute an average have SELECT SUM(CAST(int_field AS DOUBLE)), COUNT(int_field) FROM fact ...
Nathan Jones's user avatar
Best practices
0 votes
3 replies
58 views

So I have a function that I used to compare audio fingerprints with a few thousand audio fingerprints stored in a postgresql. What I did basically was: def my_function(cur: Cursor, threshold: ...
d6u9d12e's user avatar
Best practices
1 vote
2 replies
102 views

My assembly program reads characters in a text file by loading them one by one in register 'al'. However I sometime need to use rax fully, and I think this causes a partial register stall. Now I think ...
Kun Xiang's user avatar
1 vote
0 answers
58 views

This is a convex problem and also conforms to the syntax rules of CVXPY. I have tried changing the solver (ECOS or SCS) and adjusting the experimental parameters, but all failed. I'm using the CVXPY ...
Lighting's user avatar
Advice
1 vote
14 replies
250 views

I need help regarding a code I want to write in c++. I want to develop a program that receives and visualizes CAN messages on a GUI. The messages in question are about 100 distinct ID's, so we're not ...
Simone Sesana's user avatar
1 vote
0 answers
58 views

I’m working on a Vue/Nuxt project where my client reports that the website is slow — especially when loading a selection window and when fetching JSON data. However, the slowness is not very ...
Umar umar's user avatar
6 votes
0 answers
144 views

I was experimenting with some fixed-point arithmetic on the Cortex-M0+ in Godbolt's compiler explorer and came across an interesting behaviour with respect to the optimisation of a multiplication ...
Simon's user avatar
  • 664
2 votes
0 answers
47 views

I have a large BigQuery table, big_table, around 5 TB in size. It is partitioned by the column partition_date, which has about 2000 distinct values. I also have a smaller table, small_table, which ...
Alex Lipkin's user avatar
4 votes
1 answer
263 views

I'm testing int matrix multiplication, but I found that it's extremely slow everywhere (python numpy using BLAS backend is also just as slow). Int matmul being slower than float matmul is ...
Huy Le's user avatar
  • 1,989
Advice
1 vote
5 replies
90 views

[EDIT] Updated this question with actual working code. (Note: This discussion talks about the way that the array interop works, which might be relevant.) I'm trying to transfer an array of shorts to ...
Matthew Watson's user avatar
4 votes
1 answer
109 views

With the Intel 8088's segment:offset model, code and data reads will stay in the active segment unless the segment is changed. For example, take this instruction: ABCD:FFFF ADD AL,12 This ADD ...
calamari's user avatar
  • 415
0 votes
0 answers
54 views

Good afternoon! I'm new to OpenMDAO and optimization. I'm trying to set up a problem with mesh geometry parameterization for a structural (FEM) optimization task. I'm using TACS https://github.com/...
Gittwell's user avatar
1 vote
1 answer
107 views

I am working on a simulation tool for a certain heat exchange system. I first design the system using a certain routine, and then assess it's off-design performance. For the off-design performance I ...
user31649534's user avatar
0 votes
1 answer
53 views

I need to find and dequeue script and style files from frontend of Wordpress single post, I need a robust and full proof hook which can find out all scripts which are loading on front end of the page, ...
Raj's user avatar
  • 44
-3 votes
1 answer
98 views

Analysis of Google Fonts Here is me scrolling through the Greek fonts As you scroll, you'll see it progressively calls the css2 url like: https://fonts.googleapis.com/css2?family=STIX%20Two%20Text%...
Lance Pollard's user avatar
4 votes
1 answer
137 views

Cosine and sine are computed with Horner's method and a Chebyshev polynomial, e.g. a0 + x(a1 + x(a2 + ...))). The fused-multiply add instructions this generates form a dependency chain, meaning we can ...
asdfldsfdfjjfddjf's user avatar
0 votes
1 answer
48 views

When one wants to solve a convex Quadratic Problem in Cplex with a given time limit, how is it possible to get lower and upper bounds on the actual optimal value ? The primal and dual objective value ...
user2485450's user avatar
2 votes
1 answer
94 views

In order to solve a weigthed linear regression (with x and y weights), I converted the explicit to implicit expression. We are given (xmean,xstd) , (ymean,ystd) each 1d of length n. The error is given ...
pas-calc's user avatar
  • 170
-1 votes
2 answers
86 views

I have here code that recusively deletes all files/folder older than 7 days within a directory. The directory is fairly large last time I ran it took about 12 hours to finish. I know that getting ...
Tsogt's user avatar
  • 1
0 votes
0 answers
78 views

I'm working on a Vehicle Routing Problem using Google OR-Tools where I want to minimize ride time for passengers as part of the optimization objective. Context AM routes: Pick up kids from houses → ...
Harshaadhithya K's user avatar
1 vote
1 answer
116 views

Cobbling together code from various sources online I was able to create the following function that allows me to capture an image of a window on my desktop (Using Windows 11). I'm attempting to use ...
ScribbleNicks's user avatar
-2 votes
2 answers
147 views

[EDIT] Hi everyone, I am looking for clues to work out a sorting formula with Sheets. We are planning "teambuilding" school trips at our international college. I need to split a list of 200+ ...
peritus's user avatar
0 votes
2 answers
146 views

This problem arose while I was writing a program to retrieve file sizes. I wanted to learn more about file management and other file related things, so I wrote a c++ program using the fstream and ...
Liam Verdon's user avatar
0 votes
1 answer
30 views

I am running into a problem when trying to print the "best" decision variable values based on a certain case (that the one objective is less than 1). I am using the NSGA-II algorithm from ...
Butch Strasheim's user avatar
0 votes
0 answers
101 views

I wish to remove part of an HTML email by regex-matching a start tag (<table>) and its respective end tag (</table>), and anchor them by specifying a unique string which must be positioned ...
Eniac's user avatar
  • 11
0 votes
1 answer
68 views

I want to understand how to manage Z-Order in Databricks when using Predictive Optimization (PO). According to the documentation: "OPTIMIZE does not run ZORDER when executed with predictive ...
Mohamed Mokhtar's user avatar
1 vote
3 answers
109 views

I’m writing a chess engine in C++ that communicates via the UCI protocol, and I need an efficient way to check whether the allocated search time has been exceeded without adding too much overhead. The ...
Viliam Holly's user avatar
0 votes
0 answers
35 views

I am building a Flutter app where I have to execute three separate TensorFlow Lite models on-device: An embedding model An action video detection model A DistilGPT2 RAG model Currently, I bundle all ...
Nidhi Singh's user avatar
2 votes
0 answers
115 views

I'm researching about maintaining order in a list like JIRA, and I come across Jira Lexorank. I've already understood it's core concept, but there are 2 questions that I struggle to find the in depth ...
nanh's user avatar
  • 51
0 votes
1 answer
62 views

I am working on a Vehicle Routing Problem (VRP) where the fleet consists of electric vehicles. Apart from other properties in Timefold VRP example, vehicle class has: 1. A maximum driving range in ...
Ayush Kumar Srivastava 0223-19's user avatar
3 votes
1 answer
182 views

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. Throughput is most ...
Martin Brown's user avatar
  • 3,626
1 vote
0 answers
64 views

I have 10k+ lines of global CSS in a NextJS project. Does this affect the LCP, as in mobile? I have tried a lot of optimizations, like adding priority for LCP images, adding lazy loading for other ...
Iqbal's user avatar
  • 1
0 votes
1 answer
222 views

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,194
5 votes
1 answer
257 views

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
  • 3,000
2 votes
1 answer
163 views

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
1 vote
0 answers
32 views

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
59 views

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
276 views

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
-4 votes
2 answers
102 views

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
-2 votes
2 answers
261 views

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,040
0 votes
0 answers
110 views

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
257 views

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
0 votes
0 answers
95 views

I'm using Microsoft Solver Foundation to minimize chi-square between two distributions. Usually there are multiple peaks in each distribution but occasionally there is just one. I'm noticing in that ...
Craig W's user avatar
  • 4,560
0 votes
3 answers
155 views

I'm looking for a general algorithm or approach to solving this type of problem (a name or some keywords, I don't know what to Google for). I have a list of options. All of them are valid, but some ...
Lukas Knuth's user avatar
  • 25.8k
0 votes
0 answers
39 views

In an Intel architecture the various families (Haswell, Ivybridge etc.) also have different models, i3, i5, i7 etc. Typically these models differ only in the size of the Cache(s) and the number of ...
Greg's user avatar
  • 65

1
2 3 4 5
799