Data dodania Pytanie
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
2017-08-02 02:08 DataTables jQuery plugin setting recordsTotal after initial load »
I've scoured the internet and SO for this but can't seem to find an answer... I have a relatively intricate query that returns 50 records from a larg...
(1) odpowiedzi
2017-08-01 19:08 Maximize database performance for very long digit »
I have digitalized image hash, the hash is like 2k integers long. What's is the best solution to store it in database and search? Row count will be at...
(1) odpowiedzi
2017-08-01 11:08 SQL Querying - Matching datetimes vs Matching integers »
I have a bunch of data in my database and I want to filter out data that has been stored that for longer than a week. I'm using SQLServer and I found ...
(1) odpowiedzi
2017-08-01 05:08 Can I read the CPU performance counters from a user-mode program in Windows? »
I would like to program and read the hardware performance counters offered on all recent x86 hardware. On Linux there are the various perf_events sys...
(1) odpowiedzi
2017-07-31 16:07 Watir: Difference in time taken for reading using different DOM selection methods »
I am using Watir for testing my web application. I use CSS selectors to access various elements. In the below example I am trying to read all the data...
(2) odpowiedzi
2017-07-31 10:07 Way to improve Rest Webservice performance which call other API »
I have a webservice ABC ABC Operations: 1. Call XYZ web service 2. Store response in db 3. return result Overall ABC Responce time = 18 sec XYZ ...
(2) odpowiedzi
2017-07-31 03:07 Why is my JavaScript search MUCH slower if the previous search returned many results? »
I have a really strange effect in a web app I wrote. The number of current search results has a huge impact on the speed of the next search, even thou...
(0) odpowiedzi
2017-07-30 14:07 improving python code in Monte Carlo simulation »
I've written a Monte Carlo simulation for a "2d active ising model" and I'm trying to improve the runtime. What my code does: I create a matrix for t...
(1) odpowiedzi
2017-07-30 13:07 Control working directory within a function that is aborted in R »
I have a function that does a lot of repetitive calculations and at some point, it exports results in a working directory that is created by the funct...
(1) odpowiedzi
2017-07-30 11:07 java batch insertion method »
Running in an Spring-based application server context, an application is sometimes required to handle high rates of database inserts into one big tabl...
(1) odpowiedzi
2017-07-29 20:07 What is the optimal way of setting up a database for a messaging/email application? »
I am currently trying to create an email style web app to allow users of my site to contact one another. I have created an SQL table for this, which h...
(2) odpowiedzi
2017-07-29 07:07 For loop and too much loops is making the execution time very longer? »
I am currently facing a nightmare. My DB has only 400 Records almost and the problem is that my PHP code which is generating Image Sliders so the code...
(2) odpowiedzi
2017-07-29 00:07 CPU Profiling with Chrome DevTools »
When viewing Chrome's Task Manager, I see the following: That 34.9 is concerning. So I load up DevTools and take a look at the Javascript Profile...
(0) odpowiedzi
2017-07-28 19:07 Slow regex query on 80M record in PostgreSQL »
I have a read-only table with 80 million rows : Column | Type | Modifiers | Storage | Stats target | Description ----------...
(1) odpowiedzi
2017-07-28 17:07 Why is repr(int) faster than str(int)? »
I am wondering why repr(int) is faster than str(int). With the following code snippet: ROUNDS = 10000 def concat_strings_str(): return ''.join(m...
(3) odpowiedzi
2017-07-28 15:07 Why is this simple join query significantly quicker with a sub-query? »
I have two tables. order_details which is 100,000 rows, and outbound which is 10,000 rows. I need to join them on a column called order_number, which...
(1) odpowiedzi
2017-07-28 14:07 Speeding up calculation of nearby groups? »
I have a data frame that contains a group ID, two distance measures (longitude/latitude type measure), and a value. For a given set of distances, I wa...
(1) odpowiedzi
2017-07-28 06:07 What is a good way to display a spinner at the bottom of a tableview when a user scrolls, but the tableview cells load slowly? »
I have a UITableView that displays some content. When the user scrolls upward, the cells below don't always load immediately. This creates an area of ...
(1) odpowiedzi