Data dodania Pytanie
2017-08-11 15:08 Angular 2 app loading slow in Firefox »
I've used Chrome for development and app always has loaded fast there. But now I tried to run in on firefox and it takes about 8 seconds to load with ...
(0) odpowiedzi
2017-08-11 10:08 How to filter out list items of two huge lists? »
I have a huge list, which is all_entries (currently 80k integer items). In this list contains items I already handled in my overall program. When my ...
(3) odpowiedzi
2017-08-11 03:08 Where to use Task.Run if using a library does not support async await »
I have an application which sends a message over the network, and I would like to perform other work while waiting for the message to be sent and resp...
(2) odpowiedzi
2017-08-10 21:08 File object versus with statement in tree structure »
I am doing some automated data processing and result analysis which take the form of a three with some recursion and some looping within it. The whole...
(0) odpowiedzi
2017-08-10 18:08 Fastest way to unpack 8bit from 32bit values (__m256i) into __m256 with AVX2 »
I have a array called A that contains 32 unsigned char values. I want to unpack these values in 4 __m256 variables with this rule, assuming we have a...
(1) odpowiedzi
2017-08-10 02:08 What are the latency and throughput costs of producer-consumer sharing of a memory location between hyper-siblings versus non-hyper siblings? »
Two different threads within a single process can share a common memory location by reading and/or writing to it. Usually, such (intentional) sharin...
(2) odpowiedzi
2017-08-10 00:08 Python 3.5 vs. 3.6 what made "map" slower compared to comprehensions »
I sometimes used map if there was a function/method that was written in C to get a bit extra performance. However I recently revisited some of my benc...
(2) odpowiedzi
2017-08-09 22:08 How to apply conditional function in data frame updating consecutive columns in R »
Consider following data frame, with x being increasing numbers (don't have to be integers) and y varying values: x | y | d.x | d.y | abs(d.y)/d.x ---...
(0) odpowiedzi
2017-08-09 20:08 Vectorize for loops in MATLAB for faster execution »
I'm simulating the dynamic response of a linear system with uncertainty in one of the parameters of the stiffness matrix. In the code it is the ds(17)...
(0) odpowiedzi
2017-08-09 12:08 What is the difference between changing src and innerHTML? »
I have multiple iframe in the single HTML page. Everytime user wants to reload all iframes there is one button which reloads every iframe. There are ...
(0) odpowiedzi
2017-08-08 18:08 Why is numpy ma.average 24 times slower than arr.mean? »
I've found something interesting in Python's numpy. ma.average is a lot slower than arr.mean (arr is an array) >>> arr = np.full((3, 3), -9...
(2) odpowiedzi
2017-08-08 16:08 angular - how costly are pipes for more complex transfomations »
I have an array of tasks and "taskstore" which looks like this tasks:Task[]=[...] interface Task{ title:string, deadline:Date } taskStore$ ...
(0) odpowiedzi
2017-08-08 16:08 How can I improve query performance for CLOB and LONG values in Oracle-DB (cx_Oracle vs OJDBC)? »
I have performance problems when querying CLOBs and LONGs of big Oracle database tables. So far, I wrote the following unit tests with cx_Oracle (pyt...
(1) odpowiedzi
2017-08-08 06:08 Javascript Performance: Modulus operation of negative Number within decrementing loop slowing the code by more than 100% »
I was going through Eloquent JavaScript (again) and came across exercise "Chess Board" of Chapter 2. I had my one decent version of solution written b...
(3) odpowiedzi
2017-08-07 22:08 How to retrieve data from a C file efficiently »
I have a program that is supposed to retrieve (on start-up) data from a text file. This file may get huge and I was wondering how I could speed up the...
(0) odpowiedzi
2017-08-07 19:08 for loop performance iteration »
The question is, "We might expect method3 to run faster than method2, why is that?" but I have no idea. It seems like both methods do the same amount ...
(2) odpowiedzi
2017-08-07 16:08 Group vector on conditional sum »
I want to group a vector based on the sum of the elements being less than or equal to n. Assume the following, set.seed(1) x <- sample(10, 20, rep...
(2) odpowiedzi
2017-08-06 23:08 Performance cost to multiple OpenMP threads reading (not writing) a shared variable? »
In OpenMP (I am using C++), is there a performance cost if you have a shared (or even global) variable that is being repeatedly read (not written) by ...
(2) odpowiedzi
2017-08-06 21:08 Filling a USB with 0 bytes »
I'm writing a program that will fill a USB drive with 0 bytes in order to turn it into a bootable disk (that part is coming later). Right now what I ...
(1) odpowiedzi
2017-08-06 11:08 Oracle partition performance »
I have a large oracle table with more than 600 million records and we just repartitioned them so that we can purge some of the old data with out incr...
(1) odpowiedzi
2017-08-06 05:08 Why CPU usage differs too much between AVD and real device? »
I have an android app, playing back HLS. And I'm very curious about why Android Studio's CPU usage monitor shows so different loads: AVD: Kernel: ~2%...
(1) odpowiedzi
2017-08-05 22:08 Facebook Page Plugin is slowing my website loading time »
When including facebook JavaScript SDK on my website it is slowing it dramatically. See photo before / after on gtmetrix: JavaScript sdk : <di...
(0) odpowiedzi
2017-08-05 20:08 Are there any benefits to using Context.startForegroundService(Intent) instead of Context.startService(Intent) for foreground services? »
I read in the docs that Context.startForegroundService() has an implicit promise that the started service will call startForeground(). However, since ...
(0) odpowiedzi
2017-08-05 13:08 Quickly convert a very large number of lists of strings into ndarray »
My file looks as follows, where the first 3 numbers per line denote a triangle/triplet of things, and the 4th number is a marker for each triangle: 1...
(1) odpowiedzi
2017-08-05 00:08 High CPU usage with RTCPeerConnections »
I have the following setup: The idea is that Computer A captures a single local MediaStream from Cam 1 using getUserMedia. Two RTCPeerConnections ...
(1) odpowiedzi
2017-08-04 17:08 Bitmap.Config.HARDWARE vs Bitmap.Config.RGB_565 »
API 26 adds new option Bitmap.Config.HARDWARE: Special configuration, when bitmap is stored only in graphic memory. Bitmaps in this configuratio...
(0) odpowiedzi
2017-08-04 17:08 Calling query builder methods from an eloquent model instance »
I am very new in Laravel and active records in general. I apologize in advance if this is a stupid question. But I would like to make sure if what I'm...
(1) odpowiedzi
2017-08-04 14:08 Performance of Conway's Game of Life using the Store comonad »
I've written a simple implementation of Conway's Game of Life using the Store comonad (see code below). My problem is that the grid generation is gett...
(1) odpowiedzi
2017-08-04 00:08 An efficient method for calculating log base 2 of a number between 1 and 2 »
I am working on a fixed-point platform (floating-point arithmetic not supported). I represent any rational number q as the floor value of q * (1 <...
(2) odpowiedzi
2017-08-03 12:08 Fastest way to calculate the sum of specific regions of an array »
Given the following data (in python 2.7): import numpy as np a = np.array([1,2,3,4,5,6,7,8,9,10,11,12,14]) b = np.array([8,2,3]) I want to get the ...
(5) odpowiedzi
2017-08-03 10:08 Numpy: Multiplying large arrays with dtype=int8 is SLOW »
Consider the following piece of code, which generates some (potentially) huge, multi-dimensional array and performs numpy.tensordot with it (whether w...
(0) odpowiedzi
2017-08-03 00:08 Lost Cycles on Intel? An inconsistency between rdtsc and CPU_CLK_UNHALTED.REF_TSC »
On recent CPUs (at least the last decade or so) Intel has offered three fixed-function hardware performance counters, in addition to various configura...
(1) odpowiedzi
2017-08-02 13:08 Efficiently create derangement of a vector in R »
I'm looking into a way of efficiently creating a derangement (and conversely specific permutations) of a vector in R. As far as I've seen, there's no ...
(1) odpowiedzi
2017-08-02 10:08 Performance of std::partial_sort() versus std::sort() when sorting the whole range? »
Is there a significant difference between the following two approaches? Way 1 uses sort or partial_sort, depending on the size of the vector while way...
(2) odpowiedzi
2017-08-02 05:08 How to find sum of elements in a range in a grid efficiently? »
Given a n by n grid of positive numbers, what is the best complexity that can be achieved for obtaining the sum of elements in a range described by th...
(1) odpowiedzi