Data dodania Pytanie
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
2017-01-25 21:01 Fastest way to fill numpy array with distances from a point »
I have a numpy array that represents a 3d grid over a volume of space, with each cell representing a non-cubic voxel (the scaling is arbitrary in all ...
(2) odpowiedzi
2017-01-25 19:01 Can this LINQ be more efficient? »
I have a fairly complex linq grouping with some repetition that annoys me, but I haven't been able to reduce it. Is there any way to avoid getting th...
(2) odpowiedzi
2017-01-25 02:01 C# Task.Run slowing my wpf program »
Short story: I am designing software to validate some things in a CAD application. When I try parallelism it gets very slow in WPF only. Long story: ...
(2) odpowiedzi
2017-01-24 19:01 Qt pointcloud slow performance in scene3d »
I'm seeing major performance issues in a QML app I wrote to show a point cloud in a Scene3d. With 1000 points/sec it's alright, but at 10,000 it basic...
(0) odpowiedzi
2017-01-24 16:01 Why are addition and multiplication faster than comparisons? »
I always thought comparisons were the fastest operation a computer could execute. I remember hearing it on a presentation from D. Knuth where he'd wri...
(6) odpowiedzi
2017-01-24 04:01 Why do SSE instructions preserve the upper 128-bit of the YMM registers? »
It seems to be a recurring problem that many Intel processors (up until Skylake, unless I'm wrong) exhibit poor performance when mixing AVX-256 instru...
(1) odpowiedzi
2017-01-23 15:01 Exterior product in NumPy : Vectorizing six nested loops »
In a research paper, the author introduces an exterior product between two (3*3) matrices A and B, resulting in C: C(i, j) = sum(k=1..3, l=1..3, m=1....
(2) odpowiedzi
2017-01-23 11:01 numba - guvectorize barely faster than jit »
I was trying to parallellize a Monte Carlo simulation that operates on many independent datasets. I found out that numba's parallel guvectorize implem...
(1) odpowiedzi
2017-01-23 04:01 Event Listeners Efficiency »
How do event listeners in any programming language actually work internally? The point of this post is to get an overall idea of how event listeners i...
(4) odpowiedzi
2017-01-22 23:01 Why PowerShell workflow is significantly slower than non-workflow script for XML file analysis »
I am writing a PowerShell program to analyse the content of 1900+ big XML configuration files (50000+ lines, 1.5Mb). Just for test I move 36 test fil...
(1) odpowiedzi
2017-01-22 21:01 How to render React components only once on startup? »
I've been reading docs about performance but I can't find the answer to my question... I have a bunch of buttons on my application that will render b...
(1) odpowiedzi
2017-01-22 20:01 Strange algorithm performance »
For context, I wrote this algorithm to get the number of unique substrings of any string. It builds the suffix tree for the string counting the nodes ...
(3) odpowiedzi
2017-01-22 11:01 Effectively group array by element »
Lets say i have lags = [0, 30, 60, 90, 120, 150, 180, np.inf] and list = [[500, 800, 1000, 200, 1500], [220, 450, 350, 1070, 1780], [900, 450, 178...
(3) odpowiedzi
2017-01-21 22:01 GetOrAdd new vs factory performance »
Which of the following two pieces of code will perform better in different cases and why? 1. private readonly ConcurrentDictionary<int, List<T...
(2) odpowiedzi
2017-01-21 16:01 Overhead of creating classes in Python: Exact same code using class twice as slow as native DS? »
I created a Stack class as an exercise in Python, using all list functions. For example, Stack.push() is just list.append(), Stack.pop() is list.pop()...
(2) odpowiedzi
2017-01-21 11:01 How to efficiently transpose a 2D bit matrix »
I keep stumbling over this problem (e.g. in this question). Given a 2D bit matrix/board/array in the form of an array of primitive integer types, e.g....
(1) odpowiedzi
2017-01-20 23:01 Why Pandas .loc speed in Pandas depends on DataFrame initialization? How to make MultiIndex .loc as fast as possible? »
I am trying to improve a code performance. I use Pandas 0.19.2 and Python 3.5. I just realized that the .loc writing on a whole bunch of values at a ...
(1) odpowiedzi
2017-01-20 14:01 How to avoid most recent updated nodes while retrieving in neo4j? »
This might be a strange question related to the database's core features, but I got stuck with this because of a performance issue. Consider the foll...
(3) odpowiedzi
2017-01-20 01:01 BigDecimal toPlainString takes very long to generate String »
I made a program in Java to calculate extreme factorials like that of 1 milion. What it does essentially is to start a loop from 1 to n and every iter...
(2) odpowiedzi