Questions tagged [performance]

0 votes
1 replies
Optimize getting parameter values
I would like to know if there's any difference of performance between these two ways of getting the parameter value in Java: Option 1: for(int...
asked 4 months ago
-1 votes
1 replies
DateTime compare (between) Date with day month year hours minutes and seconds [duplicate]
This question already has an answer here: How to know if a DateTime is between a DateRange in C#...
asked 4 months ago
1 votes
1 replies
Generate permutations in sequential order - R
I previously asked the following question Permutation of n bernoulli random variables in R The answer to this question works great, as long as n...
asked 4 months ago
0 votes
1 replies
Pairwise distance between collections of points with latitude and longitude
I have two sets of points with their latitudes and longitudes, and I want to calculate the pairwise distance between them. This works when the tw...
asked 4 months ago
0 votes
0 replies
What is the most efficient way to extract variables from a dataframe?
I have two data frames: df1 and df2. df1 provides the rank for all integers within a sequence given start and end coordinates, for a given catego...
asked 4 months ago
0 votes
0 replies
Speed up creation of WebView
I'm currently creating a WebView simply with new WebView() but it takes more than one second (on my computer with JavaFX 11.0.2). According to t...
asked 4 months ago
0 votes
0 replies
Birthday paradox optimize the speed of code
I'm writing a simulator which checks how many balls we need to occupy every box or how many balls we need for any box has at least 2 balls (birth...
asked 4 months ago
0 votes
1 replies
Performance issues with flash file - places to start looking for the underlying issue?
I am currently working on a small flash application as a supplementary gimmick to a job application ( as 2D artist ). It has been the first time...
1 votes
1 replies
Julia: Is there a way to enumerate all matrices of size m by n with entries from a discrete set?
I am working with a set of functions of two variables f(x,y) in a 2D-grid. The function itself in each point in the grid can only take values fro...
asked 4 months ago
1 votes
0 replies
Why is GetAccessControl function very slow at first time?
I am checking if I can access a share folder or not. This is my code: var readAllow = false; var readDeny = false; var accessControlList = Dire...
asked 4 months ago
1 votes
1 replies
Node - Set maximum time per asynchronous callback
I would like to be able to tune the Node event loop to abort or throw an exception if ever a piece of code listening for an event takes too long...
asked 4 months ago
0 votes
0 replies
How to use a function to switch an image to another image (using random)
So I am a beginner coder making a game that has random Rocks positioned throughout a container. When clicking these Rocks, a random Gem that I ha...
asked 4 months ago
0 votes
0 replies
Why is execution time of two functions dependent on code order?
I wrote two similar functions that cast two numpy uint16 into one uint32. I wanted to test their execution time to see which one is faster. The r...
asked 4 months ago
0 votes
0 replies
How to increase FPS in image processing
I'm making an app on Android to do some image processing but unfortunately it is too slow. I get an image from the camera (as a RGBA mat), conver...
asked 4 months ago
1 votes
1 replies
Extremely slow reccomendation engine
I am trying to implement a reccomendation engine for my website in laravel.I wrote the code for it but the code is EXTREMELY SLOW.I ran the scrip...
asked 4 months ago
0 votes
0 replies
Huge performance difference between processing custom ReadableStream (created from buffer) compared to fs.createReadStream (created from file)
I'm writing a NodeJS program that validates the integrity of data provided in CSV format (as Buffers). In order to do so I'm using the csvdata np...
asked 4 months ago
0 votes
0 replies
How to Speed Up Protobuf Compilation on Travis
I'm attempting to improve the Travis build time on my repository At present, Travis builds take 40 minutes. We've already cached apt and pip but...
0 votes
1 replies
How to 'refused if exists' 'insert if not exists' in MySQL? [closed]
I have a table of 5 thousand data, I want to insert more 5 thousand data in the same format to it, I am not sure either this data is already inse...
asked 4 months ago
-3 votes
2 replies
Why this query is to slow in mysql
I try to improve this query but I do not made successefully. I use a some left join and subquerys (I don't know another form) We try to get all b...
asked 4 months ago
4 votes
2 replies
Vector of unordered_maps, searching in maps too slow
I wrote a small program that creates a vector of two million maps with some sample data and then queries for some values. I know I could use a d...
0 votes
3 replies
Does having a lot of inner 'helper' functions inside a functional stateless react component will result in worse performance
I am trying to use React Hooks at all time so I avoid using classes. During the recent code review one of my coworkers recommended me rewriting m...
0 votes
0 replies
Webserver Server performance issue
All ASP.NET web applications on the production server performing very slow. Web services are giving timeout issue while accessing. We have do...
asked 4 months ago
2 votes
2 replies
RegEx for matching the last line
I'm configing a RegEx (so it won't be that easy to switch into raw code for this requirement), to get the last line of input, if I use /.*$/ it g...
0 votes
0 replies
How to automate the testing for performance (battery drain and storage) for every GIT PR
I need a way to start the automated testing whenever any GIT PR (pull request) is made. This test can be on physical device or cloud based device...
asked 4 months ago
0 votes
1 replies
how to use ViewStub in keyboard layout
I want to use ViewStub in keyboard.xml I have a layout which has a key of the keyboard, see screenshot when I am going to open keyboard it ta...
asked 4 months ago