Data dodania Pytanie
2017-05-26 14:05 Are public variables faster than using getters and setters? »
I am writing a custom physics engine for a game that I am making, my physics object class has tons of variables (distance, velocity, acceleration, mas...
(2) odpowiedzi
2017-05-25 18:05 QTextEdit takes an increasing amount of time to draw the text »
I am using a QTextEdit, and I update the text (specifically setHTML) at a 1Hz rate. Initially the setHtml method is fast (only a few ms); but after 1...
(1) odpowiedzi
2017-05-25 16:05 How to get screenshot from chrome dev tools performance frame »
Using Chrome dev tools, how to get exact screenshot at exact time to share ...
(1) odpowiedzi
2017-05-25 12:05 What frameworks / technologies to use in web applications for Real Time features? »
What do you recommend (or not) to use for Real Time features (like chats or auctions) in web applications? The most important for me is your opinion ...
(1) odpowiedzi
2017-05-25 00:05 Fastest way to read in and slice binary data files in Python »
I have a processing script that is designed to pull in binary data files of type "uint16" and do various processing in chunks of 6400 at a time. The c...
(1) odpowiedzi
2017-05-24 10:05 Calculate histograms along axis »
Is there a way to calculate many histograms along an axis of an nD-array? The method I currently have uses a for loop to iterate over all other axes a...
(1) odpowiedzi
2017-05-24 08:05 Efficient and fast way to padarray matrix »
I tried to padarray more than 1000 images. However when I time my code, this specific line take the highest amount of time to complete I=abs(padarray...
(1) odpowiedzi
2017-05-24 03:05 Fastest way to calculate difference in all columns »
I have a dataframe of all float columns. For example: import numpy as np import pandas as pd df = pd.DataFrame(np.arange(12.0).reshape(3,4), columns...
(4) odpowiedzi
2017-05-23 15:05 Performance of JavaFx Gui vs Swing »
I wrote two simple programs, both draw the same Sierpinski Triangle: One program was implemented using swing, and one using javafx. There is a very s...
(1) odpowiedzi
2017-05-23 11:05 Comments from end of line to beginning of new line, performance benefit? »
I've just opened an existing ASP.NET Webforms project and it is full of the following pattern: ... --%><td class="rptOne"><asp:CheckBox I...
(0) odpowiedzi
2017-05-23 00:05 Strange Java performance issue (JIT optimization?) »
I'm experiencing very strange performance degradation in my utility class - shortly I'm adding method last(revIndex) into my clone of native ArrayDequ...
(0) odpowiedzi
2017-05-22 22:05 Improve performance of a recursion »
I would like to calculate big numbers of a sequence, which is described by the following recursion: x(0,w)=1 x(1,w)=w x(n+1,w)= 2*w*x(n,w)-x(n-1) M...
(1) odpowiedzi
2017-05-22 16:05 The accessing time of a numpy array is impacted much more by the last index compared to the second last »
This is a follow up to this answer to my previous question Fastest approach to read thousands of images into one big numpy array. In chapter 2.3 "Mem...
(4) odpowiedzi
2017-05-22 10:05 Join two ordered sequences efficiently in C# »
Presume these two ordered sequences: var outer = new char[] { 'a', 'b', 'b', 'c', 'd', 'd', 'e' }; var inner = new char[] { 'a', 'b', 'c', 'c', 'd', ...
(1) odpowiedzi
2017-05-21 18:05 How can I get the time it takes a function to test the performance of functions in Kotlin »
I need to check how long does a function need to run. I have the following functions which address the same task: mixAnimalsA fun mixAnimalsA(a1: An...
(1) odpowiedzi
2017-05-21 12:05 A better method to implement the alpha synapse function in MATLAB »
I have implemented a leaky integrate and fire neuron system that gives output in the form of an alpha function alpha = t/tau * exp(1 - (t/tau)). Howev...
(0) odpowiedzi
2017-05-21 04:05 how to fix rollover with python data »
Let's say I've got this csv file that I want to import and graph in python using pyplot and pandas. 1,2 2,4 3,3 4,4 5,6 6,3 7,5 8,6 1,3 2,5 3,7 4,4 5...
(3) odpowiedzi
2017-05-20 18:05 What does "counting the operations depends on how a function is implemented" actually mean? »
I've been studying algorithm efficiency, and one part of a course said that counting the number of operations (as opposed to timing the algorithm) dep...
(2) odpowiedzi
2017-05-20 16:05 Measuring performance of object creation in Java »
I'm trying to compare performance of creation the object of some class with creation of String from byte[]. Here is the benchmark I wrote for this: p...
(0) odpowiedzi
2017-05-20 15:05 Function executes faster on subsequent runs »
I was playing with performance.now() and wrote a simple recursive function to calculate the factorial of a number when I ran into some interesting obs...
(0) odpowiedzi
2017-05-19 22:05 Fastest approach to read thousands of images into one big numpy array »
I'm trying to find the fastest approach to read a bunch of images from a directory into a numpy array. My end goal is to compute statistics such as th...
(2) odpowiedzi
2017-05-19 20:05 MySQL: What is a sample page? »
I recently encountered a problem where the EXPLAIN plan for a MySQL query had changed dramatically and was negatively impacting query run times. In ou...
(2) odpowiedzi
2017-05-19 14:05 How does bind fields work in Angular? »
I'm working on a project where performance is crucial because it's focused in working on mobile devices with few resources. I ended up verifying that...
(2) odpowiedzi
2017-05-18 15:05 Working on a list takes too much time »
Here is my class: public class Record { public string PersonName {get; set;} public string RequestID {get; set;} } I have a db table related...
(5) odpowiedzi
2017-05-18 13:05 Why indexes don't speed up this query? »
I have two tables users and posts with 500k records each. I want to find users who had written between 100 and 200 posts. My query is: SELECT u.acc...
(2) odpowiedzi
2017-05-18 13:05 Why is my perl script an order of magnitude faster than the equivalent python code »
I've recently taken up Python3 and was stumped by how much slower than other comparable dynamic languages (mainly Perl) it is. While trying to learn ...
(0) odpowiedzi
2017-05-17 20:05 Aggregation in JAVA with Streams, is this a good approach? »
I'm playing a little bit with Java streams and i came up with a solution for a problem that i would like to share with you and see if my approach is c...
(2) odpowiedzi
2017-05-17 13:05 Coalesce vs Sargability »
The company that I work for uses a third party software, and we don't have any exposure to the application code, so I cannot change much the DB object...
(1) odpowiedzi
2017-05-17 11:05 QueryPerformanceCounter on multi-core processor under Windows 10 behaves erratically »
Under Windows, my application makes use of QueryPerformanceCounter (and QueryPerformanceFrequency) to perform "high resolution" timestamping. Since W...
(1) odpowiedzi
2017-05-16 22:05 ./Gradlew Build is taking 2 hours and 40 minutes - Is there any room for improvement? »
The app that we are working on is not very large - most of it is an empty application that gets filled in from various endpoints (server side), but we...
(0) odpowiedzi
2017-05-16 20:05 Declaring Numba Vectorize for returning two variables »
To improve the performance of loops, I used Numba vectorize method. s1 = pd.Series([1,3,5,6,8,10,1,1,1,1,1,1]) s2 = pd.Series([4,5,6,8,10,1,7,1,6,5,4...
(1) odpowiedzi
2017-05-16 14:05 Random mmaped memory access up to 16% slower than heap data access »
Our software builds a data structure in memory that is about 80 gigabytes large. It can then either use this data structure directly to do its computa...
(0) odpowiedzi
2017-05-15 17:05 pojo declaraion outside forloop »
I have an one scenario in my application, I have to add 20 POJO objects into ArrayList. In that case I have a method like below. public void metho...
(6) odpowiedzi
2017-05-15 16:05 summation of numbers in a vector without loop in matlab »
I have a vector with length L. I want to sum each N numbers without a loop in MATLAB for saving time in my simulation. For example, if L=10 and N=2 f...
(2) odpowiedzi
2017-05-15 14:05 laravel difference of session::flash and request->session->flash »
i wonder that what is the differences in performance and usage advantage ? public function delete(){ \Session::flash('success', __('common.messag...
(1) odpowiedzi