Skip to main content

Questions tagged [performance]

Performance is a subset of Optimization: performance is the goal when you want the execution time of your program or routine to be optimal.

5 votes
3 answers
458 views

Optimizing Pi Estimation Code

I'm trying to write a program in Python that estimates pi, but to get a more accurate estimation in a feasible amount of time, I want to make it faster. I'm using a method that estimates the area of ...
Rhys Bradshaw's user avatar
6 votes
8 answers
1k views

Reversing vowels in a string

Given a string s, reverse only all the vowels in the string and return it. The vowels are 'a', 'e', 'i', 'o', and 'u', and they can appear in both lower and upper ...
user avatar
2 votes
2 answers
63 views

A thread-safe performant Money Transfer API in Java

This is a popular interview question. It is meant to be done within 30 minutes. The task is to implement a thread-safe performant Bank Account API that allows to transfer, deposit, withdraw and check ...
Sasha Shpota's user avatar
6 votes
3 answers
959 views

Implement Huffman code in C17

I just finished my first coding project. Prior to this I have only made small programs so I'd like some feedback on what to improve on and how I did in general. The whole code is 658 lines long. The ...
TheGlibber's user avatar
1 vote
0 answers
48 views

Bi-Directional A* function in MATLAB

I am currently working on my thesis for 3D path planning involving external elements, and I have completed about 1/5 of the total trials that I am doing. For each 1/5 of the trials I am increasing the ...
LeftFix's user avatar
  • 11
2 votes
1 answer
49 views

CSV Data Plotting Program using CsvHelper in C#

This is a follow-up question for CSV Data Plotting Program in C#. I am trying to use CsvHelper to build an application for plotting CSV Data in this post. In the ...
JimmyHu's user avatar
  • 5,326
4 votes
1 answer
128 views

String art program in Python using PyTorch

...
flakpm's user avatar
  • 97
5 votes
3 answers
849 views

Project Euler 127 - abc-hits

Problem (Rephrased from here): The radical of \$n\$, \$rad(n)\$, is the product of distinct prime factors of \$n\$. For example, \$504 = 2^3 × 3^2 × 7\$, so \$rad(504) = 2 × 3 × 7 = 42\$. We shall ...
Nadav Nevo's user avatar
1 vote
0 answers
39 views

Solving upper triangular matrix-vector equation in Rust

Most linear algebra libraries written for Rust, e.g. nalgebra or ndarray have type or trait requirements that mean their ...
Attack68's user avatar
  • 371
1 vote
0 answers
21 views

Bitbucket pipeline YAML

I'm proficient in frontend development but new with CI/CD. Goal: Test and build a Next.js SSR project with a Bitbucket pipeline, deploy to Azure. Question: My pipeline is working, but could you give ...
Sinnabun's user avatar
0 votes
0 answers
15 views

Optimization of React Product Page component

I was working on Product Page with its nested children. On the page we can see a specific product data, add item to the cart and set quantity which we want to add. The codebase is nasty as I only ...
Andrian's user avatar
  • 11
1 vote
1 answer
63 views

Extract each occurrence from an array of objects

I have a huge list of 4k+ software products. My goal is simple. I have a list of products. Each of those products has a software value. I would like to extract each software occurrence and covert it ...
Fpasquer's user avatar
  • 113
4 votes
2 answers
104 views

Srivastava multivariate Fox H function in MATLAB

I was trying to rewrite the Python code in MATLAB. The result is consistent. But, the MATLAB code is so slow. Any help would be appreciated. Ref python code link The MATLAB code written by me is as ...
138 Aspen's user avatar
  • 169
1 vote
1 answer
264 views

Rules-engine to be improved/simplified for Efficiency (performance), Extensibility and Maintenance?

This is a simple implementation of a rules engine. I am really hating the very long MATCH/CASE function. I am wondering what kind of Design Patterns could be used there to make this code more ...
user avatar
6 votes
2 answers
733 views

Lotto Number Generator - Javascript

Newbie to Javascript here and just practicing by making a random Lottery number generator. I am practicing by building simple, achievable projects. The aim of this project is to make 10 lines of 6 ...
Scottyonfire's user avatar

15 30 50 per page
1
2 3 4 5
516