Data dodania Pytanie
2017-03-18 08:03 Speed up NumPy loop on 2D arrays - removes rows that are similar »
I am trying to significantly speed up the following code but to no avail. The code takes in a 2D array and removes rows of the array that, when compar...
(3) odpowiedzi
2017-03-18 06:03 Puzzling performance difference between mac and a relatively powerful desktop »
My original intention for writing this piece of code is to measure performance difference when an entire array is operated on by a function vs operati...
(1) odpowiedzi
2017-03-18 02:03 Numpy version of "Exponential weighted moving average", equivalent to pandas.ewm().mean() »
How to get the exponential weighted moving average in numpy just like in pandas: import pandas as pd import pandas_datareader as pdr from datetim...
(4) odpowiedzi
2017-03-17 20:03 Angular 1.x migration performance issues »
I am upgrading a huge angular 1 project from 1.3.x to 1.6.x because we require some patches in the latest version. After updating it seems that the en...
(0) odpowiedzi
2017-03-17 19:03 Numpy version of rolling MAD (mean absolute deviation) »
How to make a rolling version of the following MAD function from numpy import mean, absolute def mad(data, axis=None): return mean(absolute(data...
(1) odpowiedzi
2017-03-17 13:03 Why is async considered better performing than multithreading? »
I understand both asynchronous and multithreaded programming and I have done both and can do them with ease. However one thing still bugs me: why is t...
(2) odpowiedzi
2017-03-16 18:03 Simple data stream: Go being super slow compared to Java »
As a Java dev, I'm currently looking at Go because I think it's an interesting language. To start with it, I decided to take a simple Java project I ...
(3) odpowiedzi
2017-03-16 08:03 Postgres - No actual UPDATE, has it side-effects? »
I have a table which holds about 50M rows. I want to execute a simple UPDATE query: UPDATE the_table SET flag = true; For 99% of these rows, the fl...
(2) odpowiedzi
2017-03-16 07:03 Slowdown in 0.5 and 0.6? »
I am updating my code from Julia 0.4 to 0.5 and I am encountering some slowdown. A simple example of what I am encountering is x = rand(1:100, (50, 7...
(1) odpowiedzi
2017-03-15 16:03 Recurse through a dynamic array »
I am looking for a generalised solution for the following snippet:: var d = [[1,2,3], [1,2], [1,2,3,4,5,6]]; d[0].map((val1, index1) => { ...
(2) odpowiedzi
2017-03-15 12:03 SQL INNER JOIN vs Where Exists Performance Consideration »
Suppose, I have a list of string which is sent from client, in this case regions. And I have a table named Compliance Regions. I want to search for th...
(3) odpowiedzi
2017-03-15 07:03 Removing reverse duplicate rows R »
I have a data.table with two columns of genes and each row treated as a pair. Some gene pairs are duplicated with the order reversed. I am looking for...
(1) odpowiedzi
2017-03-14 15:03 MySQL fast check if hash exists »
I'm trying to create a MySQL function which takes n and m as input and generates random n unique combinations of m ids from result of query. The func...
(2) odpowiedzi
2017-03-14 13:03 newInstance vs new in jdk-9/jdk-8 and jmh »
I've seen a lot of threads here that compare and try to answer which is faster: newInstance or new operator. Looking at the source code, it would see...
(2) odpowiedzi
2017-03-14 10:03 How does a recursive correlated expression speed up distinct queries? »
I found this post about speeding up distinct queries: Super-fast DISTINCT using a recursive CTE: USE tempdb; GO DROP TABLE dbo.Test; GO CREAT...
(1) odpowiedzi
2017-03-13 10:03 How to detect symmetries in 4 integer variables efficiently? »
I want to find symmetries in 4 integer variables i,j,k and l . The symmetries are: all four numbers are equal: XXXX, three numbers are equal: XXXY...
(3) odpowiedzi
2017-03-13 02:03 Time.time vs DateTime.UtcNow.Millisecond performance in Unity3D? »
I need to keep track of the time a lot in my multiplayer game built with Unity, in order to know when the packet of data came in. What would have bett...
(1) odpowiedzi
2017-03-13 01:03 Time complexity of memoized fibonacci »
I recently came across this Haskell memoized fibonacci implementation: fibonacci :: Int -> Integer fibonacci = (map fib [0 ..] !!) where fib 0 =...
(3) odpowiedzi
2017-03-12 17:03 Concatenate Array in Java by Reference »
I would like to concatenate an array in Java by reference like so. int[] a = new int[] {1,2,3}; int[] b = new int[] {4,5,6}; int[] ab = concatArrayBy...
(3) odpowiedzi
2017-03-12 16:03 Is it better to use many event delegation with jQuery or just on and use if inside? »
I'm working on a new website based on jquery and i was wondering which is the best option regarding performance : Option 1: $("body").on("click",".l...
(1) odpowiedzi
2017-03-12 02:03 Speed up millions of regex replacements in Python 3 »
I'm using Python 3.5.2 I have two lists a list of about 750,000 "sentences" (long strings) a list of about 20,000 "words" that I would like to del...
(8) odpowiedzi
2017-03-11 17:03 std::list.begin() slows down for bigger lists »
I have following problem. I need to implement LexBFS algorithm which has to use double linked list. I chose std::list . When I finally debugged my cod...
(1) odpowiedzi
2017-03-11 14:03 SSAS: Same cube, worse performance on more powerful server »
I have a unexplained issue that's haunting me for weeks; There is a SSAS cube that's not performing well on any customer server, same sub-par performa...
(1) odpowiedzi
2017-03-11 14:03 Using awk language for constructing a function call graph from a txt file containing function IDs »
I have a txt file with two columns which in each column I have function Ids which indicate the first function calls the second function such as below:...
(1) odpowiedzi
2017-03-10 15:03 Performance of StringBuilder.append »
It's recommended (PMD rule AppendCharacterWithChar) to use StringBuilder.append(char) instead of StringBuilder.append(String). I agree with that. But...
(1) odpowiedzi
2017-03-10 14:03 Rails Routing order impacts performance? »
Just a quick question about Rails routing route definition order? Is it better for more frequent routes to be defined higher up in the routes.rb file...
(1) odpowiedzi
2017-03-10 09:03 Guaranteeing the order of execution without using volatile or memory barrier and locks »
I have Question regarding on compiler changing the order of execution. I am trying to improve performance of a multi-thread program (C language) by re...
(2) odpowiedzi
2017-03-09 16:03 Why is bokeh so much slower than matplotlib »
I plotted a box plot in Bokeh and another in matplotlib. Plotting in Bokeh was about 100 times slower for the same data. Why does Bokeh take so long? ...
(1) odpowiedzi
2017-03-09 11:03 Long running web service call »
I have to call a web service from my android application where I have to post some parameters and then the server will start its operation. This opera...
(4) odpowiedzi
2017-03-09 01:03 Splitting loops and cache performance »
I've written some C++ code to average the nearest-neighbour values of elements in a 2D array, and write the result into the corresponding element of a...
(0) odpowiedzi
2017-03-08 22:03 Using matrix operations instead of FOR loop for boolean comparison of cell array to index value »
I have a function that takes one vector as its input, uses another function to create a derivative vector from the input, and then compares the two ve...
(1) odpowiedzi
2017-03-08 21:03 What is the Worst-Case Input for Stein's Algorithm? »
I'm trying to come up with the recurrence relation for Stein's Algorithm (binary GCD algorithm), but my ability to trace through it is proving not up-...
(2) odpowiedzi
2017-03-08 14:03 Efficient way to add values to panda slices »
I would like to add values to pandas slices in an efficient way, since this function is called very often. The structure looks like this: import pand...
(1) odpowiedzi
2017-03-07 23:03 Radial profile of 2D matrix with float indexes »
I have a 2D data array and I'm trying to get a profile of values about its center in an efficient manner. So the output should be two one-dimensional ...
(3) odpowiedzi
2017-03-07 09:03 Extract chars enclosed in complex brackets within a string in most efficient way »
I have a string in which there are brackets, and in brackets could be another brackets. For example: var string1 = "1 a (C(b(c+ d)e-fg)) 3# 4df (h j)...
(5) odpowiedzi