Data dodania Pytanie
2017-02-26 17:02 Why is it faster to call an abstract method than an interface method in .NET? »
I have an interface I, an abstract class A, concrete classes for both of those, and a concrete class C to use as a baseline. interface I { void D...
(0) odpowiedzi
2017-02-26 17:02 Fastest way to search for 2 different values in assembly »
I want so search an assembly buffer for one of two given values, that differs only by one bit. let's say 0xfefefeffand 0xfefefefe (In other words - th...
(1) odpowiedzi
2017-02-26 00:02 pandas read_csv converters performance issue »
Description While reading large csv files (several million rows of mixed data), I used the converters parameter of pandas' read_csv method to conveni...
(1) odpowiedzi
2017-02-25 15:02 Dealing with heavy profiling of execution times in C++ »
I'm currently working on a scientific computing project involving huge data and complex algorithms, so I need to do a lot of code profiling. I'm curre...
(2) odpowiedzi
2017-02-25 12:02 Bluebird promisify vs promisifyAll Performance compare when want to promisification of one method from module »
I want to know performance difference between bluebird promisify vs promisifyAll. I have tried performance test of bluebird promisify and promisifyAl...
(1) odpowiedzi
2017-02-25 08:02 How do I find top 10 or top few CPU intensive threads created by Java process in Linux? »
How do I find top 10 or top few CPU intensive thread stack traces created by Java process in Linux ? I would like to know how much time spent as well ...
(2) odpowiedzi
2017-02-24 15:02 Are there performance implications when using ArrayList.get() many times per iteration? »
For Android development in general, is it more expensive to do the following: (Example 1) for(int x=0; x < largeObjectCollection.size(); x++){ ...
(4) odpowiedzi
2017-02-24 13:02 When to create a local variable and when to call an objects method? »
Here is a scenario. Object A has a method which receives an object. There are 2 methods. Both are doing essentially the same thing. randomCheck1()...
(4) odpowiedzi
2017-02-24 00:02 Performance difference between JavaScript created inline styles and JavaScript created stylesheets »
I want to dynamically style all elements of a given selector in my DOM. I see more or less two ways about it. For the example below I'll use a p eleme...
(2) odpowiedzi
2017-02-23 16:02 How to, simply, wait for any layout in iOS? »
Before beginning note that this has nothing to do with background processing. There is no "calculation" involved that one would background. Only UIKi...
(6) odpowiedzi
2017-02-23 15:02 Pandas: most efficient way to apply complex function over entire data frame »
I have a df which need to be grouped, filtered, modified and a custom function applied. My 'normal' approach is to slow and not the most elegant one! ...
(0) odpowiedzi
2017-02-23 08:02 What is the required complexity of a function to not be bound by main memory? »
I know that accessing main memory has a high latency if data is not cached. This question is about throughput. What is the required complexity of a f...
(1) odpowiedzi
2017-02-23 04:02 Slow basic operations JRuby rake task »
I'm trying to diagnose a performance problem with JRuby and Rails without much luck. Essentially, I have a JRuby on Rails 5 application that is going...
(1) odpowiedzi
2017-02-22 18:02 Puzzling performance of index scan. Why is scanning index slow even though result set is small and indexed »
I have large table ir_data (150GB) which contains data for different dates (column val_date). I need to know if a given date is available in the ir_da...
(1) odpowiedzi
2017-02-22 15:02 Lapply vs for loop - Performance R »
It is often said that one should prefer lapply over for loops. There are some exception as for example Hadley Wickham points out in his Advance R book...
(1) odpowiedzi
2017-02-22 13:02 Chrome slow to load resources `(from disk cache)` »
My site http://www.front-end.io configures the HTTP requests to load resources from cache with first priority. So my header will be like: cache-contr...
(1) odpowiedzi
2017-02-22 12:02 Performance using lodash or underscorejs »
Lodash or undescorejs provides methods for manipulating objects and collections, and other utilities, functions. How does it take care of performance?...
(2) odpowiedzi
2017-02-21 19:02 Why lambda IntStream.anyMatch() is 10 slower than naive implementation? »
I was recently profiling my code and found one interesting bottleneck in it. Here is benchmark : @BenchmarkMode(Mode.Throughput) @Fork(1) @State(Sco...
(1) odpowiedzi
2017-02-21 14:02 What is the fastest way to draw X amount of circles in HTML5 canvas? »
Simple question regarding the speed of canvas drawing. Would it be quicker to draw 100 circles in 1 canvas, or 1 circle in 100 canvases? ...
(1) odpowiedzi
2017-02-21 04:02 Adding a print statement speeds up code by an order of magnitude »
I've hit a piece of extremely bizarre performance behavior in a piece of C/C++ code, as suggested in the title, which I have no idea how to explain. ...
(0) odpowiedzi
2017-02-20 23:02 Why is x**4.0 faster than x**4 in Python 3? »
Why is x**4.0 faster than x**4? I am using CPython 3.5.2. $ python -m timeit "for x in range(100):" " x**4.0" 10000 loops, best of 3: 24.2 usec per...
(2) odpowiedzi
2017-02-20 19:02 Closest point to another point on a hypersphere »
I have n (about 10^5) points on a hypersphere of dimension m (between 10^4 to 10^6). I am going to make a bunch of queries of the form "given a point...
(2) odpowiedzi
2017-02-20 18:02 Is it worth saving an object property into a variable when accessed several times? »
Particularly in wordpress, I was wondering: does it make sense saving for example $post->ID into a $post_id variable when accessing it several time...
(1) odpowiedzi
2017-02-20 12:02 Set of integers. Possible performance gain in case of increasing new entries »
If you were a highly skilled low-latency Java developer (I am not) and you were told to implement a set of int (primitive or not), would it be possibl...
(1) odpowiedzi
2017-02-19 23:02 How to speed up one hot encoder code »
I made simple function that will return an output one hot encoded matrix when given as input one vector. import numpy as np def ohc(x): u = list...
(3) odpowiedzi
2017-02-19 20:02 Fast points in circle test with numpy »
I have a large number of (x,y) grid points with integer coordinates which i want to test if they are in small number of circles given by radius and ce...
(1) odpowiedzi
2017-02-19 18:02 Python/Plone: Getting all keywords and showing for EDIT content is very slow »
Python/Plone: Getting all keywords and showing for EDIT content is very slow (keywords.pt) No of keywords is 20000 so traversing these huge no of keyw...
(1) odpowiedzi
2017-02-18 22:02 Slow mysql query (using IN) »
I have a simple query: SELECT Description, Temp1, Temp2, SensorData.DateAndTime FROM SensorData INNER Join Sensors on Sensors.ChipId=SensorData...
(2) odpowiedzi
2017-02-18 20:02 DocumentDB - Quantify bounded execution in stored procedure »
I have a DocumentDB stored procedure that does insert or update (not replace but rather reads and update existing document). The stored procedure does...
(1) odpowiedzi
2017-02-18 11:02 Bash. The quickest and efficient array search »
I need to do an array search so many time in a bash process. I need to know what is the most quick and efficient way to do it. I know how to do it. Th...
(4) odpowiedzi
2017-02-17 14:02 Why direct memory 'array' is slower to clear than a usual Java array? »
I've set up a JMH benchmark to measure what would be faster Arrays.fill with null, System.arraycopy from a null array, zeroying a DirectByteBuffer or ...
(2) odpowiedzi
2017-02-17 11:02 Similar code (for exponentially weighted deviation) is slower in Haskell than in Python »
I implemented exponentially weighted moving average (ewma) in python3 and in Haskell (compiled). It takes about the same time. However when this funct...
(3) odpowiedzi
2017-02-17 10:02 Do I need to put top 1 when using SqlCommand.ExecuteScalar() »
I've analyzed the code of SqlCommand and see that it works fine (see CompleteExecuteScalar method). But I'm not sure should I use top 1 in the query. ...
(2) odpowiedzi
2017-02-16 21:02 Python - something faster than 2 nested for loops »
def fancymatching(fname1, fname2): #This function will do much smarter and fancy kinds of compares if (fname1 == fname2): return 1 els...
(2) odpowiedzi
2017-02-16 15:02 How to create big dynamic view in android? »
i have a big problem with creating and removing views in many times For example i searched in sqlite database and fetching 200 records, and i want cr...
(1) odpowiedzi