Data dodania Pytanie
2017-06-05 18:06 python panda join dynamic columns by removing duplicates »
we have an use case where we need to join all column values in a row by removing duplicates.Data is stored in a data frame of panda. For eg consider b...
(2) odpowiedzi
2017-06-05 15:06 Compiler optimization: g++ slower than intel »
I recently acquired a computer with dual-boot to code in C++. On windows I use intel C++ compiler and g++ on linux. My programs consist mostly of comp...
(2) odpowiedzi
2017-06-05 09:06 Reading Oracle Explain plan »
explain plan for SELECT * FROM schema2.mv_a_data mv WHERE mv.routing_code_type_id = 3 AND mv.static_data_status_id IN(5, 8) ...
(3) odpowiedzi
2017-06-04 04:06 Which is better for efficiency? variabels for repeated selectors or more concise selectors »
I'm trying to use variables to store static selectors I use more than once in a specific scope. These vars would be global variables in that they as...
(1) odpowiedzi
2017-06-04 00:06 Kotlin enum class in Android performance »
In Java we are told to strictly avoid using enums on Android because they take up twice the memory. Does this apply to enum class in Kotlin aswell? W...
(2) odpowiedzi
2017-06-04 00:06 Speeding up IndexedDB search with Multiple Workers »
PROBLEM: I am trying to speed up my IndexedDB searches by using multiple web workers and therefore executing multiple read transactions simultaneously...
(1) odpowiedzi
2017-06-03 19:06 Javascript - Better Alternate to Recursive call »
I have this following problem. I need to calculate a number x based on time t, x would be represented as M(t). We have the following M(0) = 1 M(1)...
(3) odpowiedzi
2017-06-03 13:06 Slow performance MySql query, alternatives / suggestions? »
I'm implementing a search filter page in my coin website but it's quite slow now that I have many entries: Here is the query when no filter is selec...
(3) odpowiedzi
2017-06-03 12:06 Why is this C++ code execution so slow compared to java? »
I recently wrote a computation-intensive algorithm in Java, and then translated it to C++. To my surprise the C++ executed considerably slower. I have...
(2) odpowiedzi
2017-06-02 21:06 Does method invoke cost remain constant with more interface implementions »
Lets say we have an interface "ISomething" with the method "DoSomething". And we create multiple classes that implement it. Example 5/10/100/1000 new ...
(3) odpowiedzi
2017-06-02 19:06 Why is the StringBuilder chaining pattern sb.append(x).append(y) faster than regular sb.append(x); sb.append(y)? »
I have a microbenchmark that shows very strange results: @BenchmarkMode(Mode.Throughput) @Fork(1) @State(Scope.Thread) @Warmup(iterations = 10, time ...
(1) odpowiedzi
2017-06-02 10:06 WPF DocumentViewer is slower than Microsoft XPS viewer »
I'm dealing with problem to show dwfx (auto cad) files in our WPF application. I'm using XpsDocument to show such a files. Problem is lack of perform...
(0) odpowiedzi
2017-06-01 22:06 Is Java ArrayList really this much slower than C++ vector? »
I do not want to start yet another pointless flamewar about whether Java or C++ is the better language in general. I want to know whether a comparison...
(1) odpowiedzi
2017-06-01 17:06 Why is processing a random list so much faster than processing an ordered list? »
I was trying to improve the performance of the func function and I found that a simple change in how the aX list is generated improves the performance...
(2) odpowiedzi
2017-06-01 10:06 How can I filter a dictionary with arbitrary length tuples as keys efficiently? »
TL;DR What is the most efficient way to implement a filter function for a dictionary with keys of variable dimensions? The filter should take a tuple...
(4) odpowiedzi
2017-05-31 22:05 numpy vs Matlab speed - arctan and power »
In Python and Matlab, I wrote codes that generate a matrix and populates it with a function of indices. Execution time of Python code is about 20 time...
(2) odpowiedzi
2017-05-31 16:05 When should we align our data and when does the compiler do it for us? »
Alignment of data (and instructions) is still fairly critical to high performance computing, according to the Intel optimization manuals. I am aware ...
(0) odpowiedzi
2017-05-31 08:05 Fast way to calculate conditional function »
What is the most fast way to calculate function like # here x is just a number def f(x): if x >= 0: return np.log(x+1) else: ...
(4) odpowiedzi
2017-05-30 17:05 What date API should I use to avoid GC pauses? »
I am writing a solution for HFT ( High-Frequency Trading ), which processes the messages that contain dates, I need to work with date in each message....
(0) odpowiedzi
2017-05-30 14:05 AngularJS unusually high memory consumption »
I have an AngularJS application that renders around 200-250 elements . Each of the repeated elements contains inner items , and some of them have nes...
(2) odpowiedzi
2017-05-30 08:05 Tensorflow: simultaneous prediction on GPU and CPU »
I’m working with tensorflow and I want to speed up the prediction phase of a pre-trained Keras model (I'm not interested in the training phase) by u...
(1) odpowiedzi
2017-05-29 15:05 Using try-catch over if conditions to safely set values with minimum performance impact in java »
Here, my main goal is setting the value safely, without having a performance (speed, memory, cpu etc) impact. I have a silly option (in a bad style) ...
(3) odpowiedzi
2017-05-29 14:05 cfprint and cfdocument resource from a database runs slow »
I have been having issues printing a cfdocument variable with cfprint. The printing works but it takes a lot of time before running. Please, what can ...
(0) odpowiedzi
2017-05-29 13:05 how to read extreme long lines from text file fast and safe in C++? »
There is a large text file of 6.53 GiB. Each line of it can be a data line or comment line. Comment lines are usually short, less than 80 characters, ...
(3) odpowiedzi
2017-05-29 06:05 Getting high query throughput out of Entity Framework Core »
I am trying to get the most out of EF Core that I can with queries that need very high throughput. When I run my asp.net core web app in debug mode, I...
(0) odpowiedzi
2017-05-28 20:05 WordPress slow on localhost and Light-speed on 127.0.0.1 »
I'm working locally on a WordPress website on osx and having issues with loading time on localhost but on 127.0.0.1. Any idea on the origin of that k...
(0) odpowiedzi
2017-05-28 19:05 fastest way to create numpy 2d array of indices »
I want to create a numpy 2d array containning the cells indices, for example such 2x2 mat can be created using : np.array([[[0,0],[0,1]],[[1,0],[1,1...
(3) odpowiedzi
2017-05-28 14:05 Java - Split huge file that doesn't fit in RAM, into multiple files »
How can I apply in Java the algorithm External Sorting but not for sorting, only for splitting a large file that doesn't fit in RAM? I want to create...
(0) odpowiedzi
2017-05-28 12:05 How to most efficiently use QR-decomposition in Julia? »
Avoiding array allocations is good for performance. However, I have yet to understand what is the most possible efficient way one can perform a QR dec...
(1) odpowiedzi
2017-05-28 08:05 Instantiating a template function in all M * N combinations »
Imagine I have M methods that I want to time, along with N timing methods (let's call them clock implementations)1. The exact details aren't too impor...
(2) odpowiedzi
2017-05-27 20:05 Tensorflow build from source not faster for retraining? »
I've been running Tensorflow on my lovely MBP early 2015, CPU only. I decided to build a Tensorflow version with Bazel to speed things up with: SSE4.1...
(1) odpowiedzi
2017-05-27 17:05 optimize Insert query with minus oracle »
Wanted to optimize an important statement that is taking longer to finish. Basically the process will: 1) insert data on NG_ORGANIZATION_CATEGORY_GT...
(3) odpowiedzi
2017-05-27 02:05 Calculate percentile for every value in a column of dataframe »
I am trying to calculate percentile for every value in 'a' column in 'x' dataframe. Is there a better way to write the following piece of code: x["pc...
(1) odpowiedzi
2017-05-26 20:05 Why is `speedglm` slower than `glm`? »
I am trying to use speedglm to achieve a faster GLM estimation than glm, but why it is even slower? set.seed(0) n=1e3 p=1e3 x=matrix(runif(n*p),nrow...
(1) odpowiedzi
2017-05-26 16:05 How to improve the speed of xlwings UDFs in Excel? »
In Python 3, I'm using UDFs in Excel via xlwings to compute a formula. The formula is computed over 4000 times and it takes about 25 seconds to refres...
(0) odpowiedzi