Category "performance"

Recomendation for daily background work in Android

I just want to know any of your experiences scheduling daily jobs that perform tasks like data upload with POST API request and then update the local database w

How to make a prime decomposition function faster?

I want to make a prime decomposition function faster, but it needs to use a precomputed list of primes. This is what I have so far: def decompose(n): factor

J meter - Mobile app recording - SSL HandshakeException

I am getting below responce in result tree when record mobile app using j meter javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown

During thread contention how can I speed up this ConcurrentQueue implementation which uses ReaderWriterLockSlim over a regular Queue<T>

Question: How can I implement a faster thread safe queue to support an object pool when under heavy thread contention? Scenario: My overall final objective is a

Website Performance Issue [closed]

If a website is experiencing performance issues all of a sudden, what can be the reasons behind it? According to me database can one reason or

Should I put href attribute before rel on link tag?

As in here https://github.com/joshbuchea/HEAD#performance, it recommends putting the href attribute before the rel attribute. I used to put rel before href. Ho

Is Laravel really this slow?

I just started using Laravel. I've barely written any code yet, but my pages are taking nearly a second to load! This is a bit shocking to me when my framewo

How to compare 1,000 images using the available memory efficiently

This is a tough problem. I have around 1,000 images stored in my disk, and I want to find images that are similar to each other by comparing them in pairs. So I

Laravel Eloquent vs DB facade: Why use Eloquent and decrease performance? [closed]

I did some performance tests between Laravel's DB facade query builder and Laravel's Eloquent ORM. The DB facade was much faster than Eloquent

How many concurrent setTimeouts before performance issues?

I have a node.js app with 10k-100k concurrent setTimeouts running at any given time. (They are all 5 minute duration.) The callback is pretty trivial, just an H

How many concurrent setTimeouts before performance issues?

I have a node.js app with 10k-100k concurrent setTimeouts running at any given time. (They are all 5 minute duration.) The callback is pretty trivial, just an H

How to improve performance of JavaFX graphic drawing?

Situation : I've created an app which needs to draw simple rectangles (1x1 - 3x3 size) depends on some variables stored in array of corresponding size (900x900

Node+Express+MongoDB Native Client Performance issue

I am testing the performance of Node.js (ExpressJS/Fastify), Python (Flask) and Java (Spring Boot with webflux) with MongoDB. I hosted all these sample applicat

Does auto deduce the type at compile time or runtime in C++ 11?

Consider the following auto a = 10; When does the compiler know that a is an int, at compile time or at run-time? If it deduces the type at run-time, will it n

How to solve usng temporary;using filesort using MySQL SELET SELECT UNION SELECT

I have this query: SELECT * FROM (SELECT a.id AS id, a.user_id AS user_id, aa.power * a.amount AS total_power, a.group_number A

How to convert a nested for of loop into a custom iterator?

I have the following code: function* getPossibleCollidersWith(shape) { for (let square of retrieve(shape)) { for (let neighbor of square) { yield ne

MongoDB query optimizer keeps choosing the least efficient index for the query

I have a large collection (~20M records) with some moderate documents with ~20 indexed fields. All of those indexes are single field. This collection also has q

When using ASP.NET MVC, what is the best way to update multiple page sections with one HTML.Action() method?

I have a pretty big ASP.NET MVC site with 100 controllers and thousands of actions. Previously the header image that was defined on the Site.Master page was ha

timeit and its default_timer completely disagree

I benchmarked these two functions (they unzip pairs back into source lists, came from here): n = 10**7 a = list(range(n)) b = list(range(n)) pairs = list(zip(a,

Codewars execution timeout despite short execution time on other IDEs (Python)

I was solving a problem on CodeWars and my solution keeps getting execution timeouts. I know the code is correct and doesn't take long to execute, since when I