Data dodania Pytanie
2017-02-05 17:02 Is CSS performance better for several class selectors or a single :not()? »
I am wondering what is better practice in terms of performance, if using several class selectors or a single one using :not(). As an example (this is...
(0) odpowiedzi
2017-02-05 13:02 google app engine taking too much time in giving response from endpoint android »
In my android project i have started building google cloud endpoints. But the response time is very slow. It is taking 21 seconds to fetch the respons...
(1) odpowiedzi
2017-02-05 11:02 Count all past occurences of an element in a large dataset »
I have a quite large dataframe (3 million rows) that looks like this: df = pd.DataFrame({'user_id' : ['100','101','102','103','104'], 'ser...
(2) odpowiedzi
2017-02-04 20:02 Factory vs constructor function performance in javascript »
So, when we have a simple constructor: function Vec(x, y) { this.x = x; this.y = y; } And a factory analogue: function VecFactory(x, y) { ...
(0) odpowiedzi
2017-02-04 15:02 What's the difference between these two left join sql queries? »
There are two tables: customers and orders. Customer can have one or more orders. I would like to understand the difference in terms of execution spee...
(2) odpowiedzi
2017-02-04 12:02 Difference in performance of two seemingly similar dict statements? »
"One semi-gotcha to avoid though is to make sure you do: key in some_dict rather than key in some_dict.keys(). Both are equivalent semantically, but p...
(1) odpowiedzi
2017-02-03 22:02 Is there any harm in putting comments first in C header file? »
Is there any meaningful downside, on modern compilers, to putting comments starting at the beginning of a header file? That is, something like the fo...
(1) odpowiedzi
2017-02-03 16:02 Numpy: What is special about division by 0.5? »
This answer of @Dunes states, that due to pipeline-ing there is (almost) no difference between floating-point multiplication and division. However, fr...
(0) odpowiedzi
2017-02-03 13:02 Overlays make emacs really slow »
I use hide-show to collapse certain parts of my text and I use the code below to show the number of hidden lines. However, when a file is large enoug...
(1) odpowiedzi
2017-02-02 19:02 Numba CUDA `vectorize` and `reduce` decorators slower than expected »
I've been testing out some basic CUDA functions using the Numba package. My main goal is to implement a Richardson-Lucy algorithm on the GPU. It is po...
(1) odpowiedzi
2017-02-02 15:02 Is there any benefit to upgrading Java 7 compiled code to Java 8? »
I have a old application written using Java 7. It runs fine in a Java 8 JRE. I do not plan on rewriting any of the code to make use of Java 8 features...
(6) odpowiedzi
2017-02-02 13:02 Mongomapper search query improvements »
In my rails project I am using mongomapper gem and Here is the query for searching certain company. Currently, It taking almost half minutes to return...
(0) odpowiedzi
2017-02-02 05:02 Postgres - Performance of large jsonb column »
We are using Postgres jsonb type in one of our DB tables. Table structure is shown as below: CREATE TABLE T ( id UUID NOT NULL PRIMARY KEY, paylo...
(1) odpowiedzi
2017-02-02 03:02 Why is numpy.ndarray.T so much faster than numpy.transpose(numpy.ndarray)? »
Recently I came across someone using numpy.transpose instead of numpy.ndarray.T. I was curious so I timed it: from timeit import timeit import numpy ...
(1) odpowiedzi
2017-02-01 22:02 How to measure speed of short piece of C/assembly code?lin »
Consider this C code: #include <complex.h> complex float f(complex float x[]) { complex float p = 1.0; for (int i = 0; i < 32; i++) ...
(2) odpowiedzi
2017-02-01 15:02 Efficient way of sorting a list of tuples in java »
Given is a generic datatype whick looks like this: HashMap<EdgeTuple, Double> edgeList where tuple is a class EdgeTuple and Double is a weight w...
(2) odpowiedzi
2017-02-01 14:02 Stop double division before decimals (low precision, fast division; getting only the 'quotient') »
Basically a performance related question: I want to get only the integer quotient from a double division, i.e. for example, for a division 88.3/12.7 ...
(1) odpowiedzi
2017-01-31 10:01 Slow query from getting the intersection of news_tags and users_tags »
I have two tables: "news_tags" and "users_tags". Now I want to get the appropriate users for a particular news. I get the right results with my query,...
(1) odpowiedzi
2017-01-31 01:01 How to tune hive to query metadata? »
In case I am running a below hive query on table with certain partitioned column, I want to make sure hive does not do full table scan and just figure...
(1) odpowiedzi
2017-01-31 01:01 Native JavaScript vs. jQuery - real-world performance vs. theoretical benchmarks »
After a decade or so, I started to get into web development again. I set up a page with about 50 different input fields in all variations, which manip...
(1) odpowiedzi
2017-01-30 18:01 numpy: efficient, large dot products »
I am trying to perform a large linear-algebra computation to transform a generic covariance matrix KK_l_obs (shape (NL, NL))into a map of covariance m...
(2) odpowiedzi
2017-01-30 16:01 onBackPressed() Best Practice/Performance »
I usually override onBackPressed() like this: @Override public void onBackPressed() { super.onBackPressed(); Intent intent = new Intent(getAp...
(1) odpowiedzi
2017-01-30 05:01 NodeJS much slower than PHP? »
I run a tiny scale web server under Apache + PHP + MySQL at the moment and would like to explore the option of using NodeJS instead. The server litera...
(1) odpowiedzi
2017-01-29 18:01 What is the "MOST" efficient way of executing a command line tool too many times? »
When you search for a way of executing a command-line-tool or the command-prompt, you find too many results like this question, this question or this ...
(3) odpowiedzi
2017-01-29 17:01 How to use memoization in counting a large number of matrices »
I have been given a program, which requires me to count the number of previous states for a matrix. The given matrix is a boolean matrix. I will use ...
(2) odpowiedzi
2017-01-29 11:01 TCP tunables does not show expected result in data xfer rate »
I have a client server program written in C. The intent is to see how fast big data can be trasported over TCP. The receiving side OS (Ubuntu Linux 14...
(1) odpowiedzi
2017-01-28 18:01 Is it possibile to pass an Activity to a non activity class? »
I read many posts (one is this) and articles according to which you shouldn't pass context from an Activity to a non activity class, to avoid leak of ...
(2) odpowiedzi
2017-01-28 14:01 L2 instruction fetch misses much higher than L1 instruction fetch misses »
I am generating a synthetic C benchmark aimed at causing a large number of instruction fetch misses via the following Python script: #!/usr/bin/env p...
(0) odpowiedzi
2017-01-28 10:01 Java - performance of object pool vs new object instantiation »
I'm currently trying to build some code execution optimization for a contest, and was looking at the ObjectPool pattern to favor object reuse instead ...
(1) odpowiedzi
2017-01-27 21:01 "For" Loop, gradually slowing down »
I wrote a code that shows the progress of the loop. Part of codes: String instantBinary = ""; for (int i = 0; i < Text.length(); i++) { //Some...
(3) odpowiedzi
2017-01-27 20:01 Slow len function on dask distributed dataframe »
I have been testing how to use dask (cluster with 20 cores) and I am surprised by the speed that I get on calling a len function vs slicing through lo...
(1) odpowiedzi
2017-01-27 11:01 Speed of Powershell Script. Optimisation sought »
I have a working script who's objective is to parse data files for malformed rows before importing into Oracle. To process a 450MB csv file with > 1 m...
(3) odpowiedzi
2017-01-26 23:01 generating large number of random variates »
I'm trying to figure out the best way to generate many random numbers in python. The difficult part is that I won't know how many numbers I'll need b...
(3) odpowiedzi
2017-01-26 17:01 Performance - should I use both Arrays and Objects for huge list? »
Till now, my server has handled huge arrays of entities. Mainly, it does a for loop x times per second on entities, checking if one entity is in the ...
(1) odpowiedzi
2017-01-26 15:01 Can I split a query in multiple queries or create parallelism to speed a query? »
I have a table avl_pool, and I have a function to find on the map the link nearest to that (x, y) position. The performance of this select is very li...
(0) odpowiedzi