Category "optimization"

Android ProGuard: Most Aggressive Optimizations

Android's official proguard documentation shows two primary optimizations: set minifyEnabled to true use proguard-android-optimize.txt instead of proguard-and

Viewing unused images in Strapi

I have users who add images to a Strapi Media Library. I can't tell if images are actively used or not. I would love to clean out images taking up space that

How to improve Merge Sort speed in python

Yes, it is homework, but I ended up doing it in Java just to get it done, but now the python implementation is bothering me. I'm pretty sure I've implemented it

Fastest Implementation of the Natural Exponential Function Using SSE

I'm looking for an approximation of the natural exponential function operating on SSE element. Namely - __m128 exp( __m128 x ). I have an implementation whic

Can modern x86 implementations store-forward from more than one prior store?

In the case that a load overlaps two earlier stores (and the load is not fully contained in the oldest store), can modern Intel or AMD x86 implementations forwa

Why is a conditional move not vulnerable to Branch Prediction Failure?

After reading this post (answer on StackOverflow) (at the optimization section), I was wondering why conditional moves are not vulnerable for Branch Prediction

How to solve two dimensional growth grid problem?

I was doing an assessment for job interview. One of the 3 problems that I had to solve in an hour was finding the maximal value in a grid where you traverse it

Pandas dataframe count values above threshold using groupby - code optimization

I have a large pandas dataframe where I want to count the number of values above a threshold (zero) in each column grouped by the values in one name column. Th

Artificial Bee Colony library [closed]

I'm working on the implementation of Artificial Bee Colony algorithm in optimization of fuzzy c-means clustering. Can anyone provide a link fo

Scala collectFirst with function returning Option[U]

I've had this situation occur a number of times in the library I'm writing, and I'm not particularly satisfied with the solutions I've come up with so far. Let

How to use Flambda with dune in ocaml?

I'm doing a project in which I need to optimize my code as much as I can because it takes hours to run with a normal compilation. I was told to use Flambda, but

Multilayer perceptron in scikit-learn

I am trying to code a multilayer perceptron in scikit learn 0.18dev using MLPClassifier. I have used the solver lbgfs, however it gives me the warning : Converg

Does the <script> tag position in HTML affects performance of the webpage?

If the script tag is above or below the body in a HTML page, does it matter for the performance of a website? And what if used in between like this: <body&

In C is it faster to use the standard library or write your own function?

For example, in <ctype.h> there are functions like isalpha(). I want to know if writing an isalpha function on my own is faster than calling isalpha? Th