Skip to main content

All Questions

1 vote
0 answers
52 views

How to reduce cache miss in SPSC queue pop function?

I am working on optimizing a Single Producer Single Consumer (SPSC) queue in C++. The following is the miniman reproducible example for my implementation: #include <atomic> #include <cstddef&...
Rishi Jain's user avatar
0 votes
0 answers
7 views

CherryPy web server chokes on 50 concurrent users

I have a Cherrypy webserver that runs fine UNTIL it gets more then 50 concurrent users. Then the web server does not respond any more and times out at the web client. This happens with plain static ...
thedax's user avatar
  • 131
0 votes
0 answers
77 views

How to Optimize Python's Multithreaded Performance for Real-Time Machine Learning Predictions?

I'm currently developing a real-time machine learning application using Python, and I'm facing challenges with optimizing multithreaded performance to reduce latency in model predictions. Even with ...
Louis's user avatar
  • 83
0 votes
1 answer
28 views

Why do we still need locks with atomic operations?

The example code is as follows: class ResourcePool{ public: ... static inline ResourcePool* singleton() { ResourcePool* p = _singleton.load(butil::memory_order_consume); ...
Marsontao_'s user avatar
0 votes
0 answers
59 views

Can MySQL update concurrent a table with different rows

I have a table (users) with 20M records. I need to update column user_image (this is indexed colum) to a new value. Now, I am using PHP + amphp/amp (https://github.com/amphp/amp) to run multiple ...
Pham Khien's user avatar
-3 votes
1 answer
62 views

Why is this concurrent code slower than the serial code? (Go) [closed]

I wanted to try using a concurrent solution to problem 206 (Reverse a Linked List) on LeetCode, so I wrote this: func reverseList(head *ListNode) *ListNode { var prev, temp *ListNode cur, ch :=...
Boris Kaptsanov's user avatar
2 votes
1 answer
55 views

Benchmarking ways to avoid processing duplicate messages in a Go concurrent environment

I have a Go program that receives TCP messages from many peers, each on its own go-routine. If I have already received a message from a peer (which is a []byte), I don't want to process it again. To ...
Ivan's user avatar
  • 1,831
1 vote
2 answers
67 views

Concurrency Error using Entity Framework in case of different dbcontext

I have a given entity 'Student' with application based concurrency control defined on 'LastModified'. public class Student { public int Id { get; set; } public string Name { get; set; } = null!...
DevOnRun's user avatar
0 votes
0 answers
64 views

Performance / Concurrency Issue in Pine Script / Trading View

Included is the Code of an indicator which list stocks that are satisfying the conditions of PVT (Price Volume Trend), Volume across three timeframes W, D and 2H. Because of the Pinescript constraint( ...
life explore's user avatar
0 votes
1 answer
121 views

How can I optimize this code? Concurrent requests with python (concurrent library)

I am creating an endpoint in my API (FastAPI) that needs to send multiple requests to an external API with very large responses. The external API is paginated, and I need to get all the pages and ...
serp002's user avatar
  • 126
2 votes
1 answer
2k views

Why does Rust performance of `Arc` vs `Rc` vary with the size of the referenced vector?

While doing the rustlings exercises on smart pointers, I was wondering what the performance cost of using an Arc which references a list of numbers is if multiple threads are reading this list. So I ...
Encephala's user avatar
  • 349
0 votes
0 answers
23 views

Transaction affects time of computation?

Consider: with transaction.atomic(): job = Job.objects.select_for_update().get(id=job_id) texts = pickle.loads(job.job_body) timer = Timer() print("Computing embedding for:", ...
AlwaysLearning's user avatar
-1 votes
3 answers
363 views

How is Rust --release build slower than Go?

I'm trying to learn about Rust's concurrency and parallel computing and threw together a small script that iterates over a vector of vectors like it was an image's pixels. Since at first I was trying ...
l1901's user avatar
  • 21
1 vote
2 answers
79 views

`C++ concurrency in Action` chapter 4 doubts [closed]

I am currently reading C++ Concurrency in Action 2nd edition, page 111 (Chapter 4). It's a somewhat long question. So the author is showing how to write a good concurrent version of a function that ...
BIuesky's user avatar
  • 97
0 votes
1 answer
568 views

How to simulate concurrent users in JMeter if there are multiple requests in a thread group and first requests in dependent on the previous request?

I have a load test case, where the user first request which generate token will be passed to second request and second request ID to third request. The script works fine if it is executed for 1 user ...
Koushic's user avatar
  • 153

15 30 50 per page
1
2 3 4 5
24