Data dodania Pytanie
2017-03-31 11:03 This simply regular expression is really slow, why? »
I have written this really simple regular expression which checks if the whole string represents one or more hexadecimal numbers (optionally starting ...
(1) odpowiedzi
2017-03-30 21:03 Match set of x,y points to another set that is scaled, rotated, translated, and with missing elements »
(Why am I doing this? See explanation below) Consider two sets of points, A and B as shown below It might not look like it, but set A is "hidden" ...
(1) odpowiedzi
2017-03-30 20:03 fast loading of large hash table in Perl »
I have about 30 text files with the structure wordleft1|wordright1 wordleft2|wordright2 wordleft3|wordright3 ... The total size of the files is abo...
(2) odpowiedzi
2017-03-30 19:03 F# Performance Impact of Checked Calcs? »
Is there a performance impact from using the Checked module? I've tested it out with sequences of type int and see no noticeable difference. Sometim...
(1) odpowiedzi
2017-03-30 13:03 Application crashing on lollipop devices after adding Facebook SDK in gradle »
Application is working fine on all OS, but when i add facebook SDK, it gives me following error message on lollipop devices. compile 'com.facebook.an...
(1) odpowiedzi
2017-03-29 23:03 where is device to host memory copy in MATLAB »
I am new in MATLAB gpu computing. In the following code, I used some gpu arrays which are created in the device directly. However, NVidia Visual Profi...
(0) odpowiedzi
2017-03-29 17:03 Python - How to efficiently iterate through the subsets of a dictionary? »
I have a dictionary with 500 DateFrames in it. Each data frame has columns 'date' , 'num_patients'. I apply the model to all the data frames in the di...
(1) odpowiedzi
2017-03-29 02:03 Why is this GoLang solution faster then the equivalent Java Solution? »
Recently at work we were playing around with the following quiz question asked by IBM https://www.research.ibm.com/haifa/ponderthis/challenges/May2015...
(1) odpowiedzi
2017-03-28 23:03 Cassandra Spark slow writes »
I am making a small Spark application using the Spark Cassandra connector and dataframes in python, but I am getting extremely low write speeds. When ...
(0) odpowiedzi
2017-03-28 17:03 Intel Core i7 processor and cache behaviour »
I have run the following assembly code: (that iterates 1000 times through an array of 10 000 000 elements each of 4 bytes) on an Intel Core i7 CPU (wi...
(1) odpowiedzi
2017-03-28 03:03 Python sleep until time without busy loop »
Let's say I want to make an event reminder in Python. It would read a file on startup containing a list of events (meetings, birthdays, etc), figure ...
(0) odpowiedzi
2017-03-27 19:03 I'm using "np.count_nonzero(myarray)>smallvalue" on a bunch of numpy arrays. Can I stop the counting halfway through once "smallvalue" is reached? »
The arrays I'm checking are boolean. In this case, np.count_nonzero() appears to be the most efficient way to do a "sum". I still wonder if there's a ...
(0) odpowiedzi
2017-03-27 19:03 highlighting and editing text in long string »
In a HTML/JavaScript/React/Redux web application, I have a long string (around 300kb) of natural language. It is a transcript of a recording being pla...
(5) odpowiedzi
2017-03-27 14:03 Clustered Index on Foreign Key VS Primary Key »
Table Structure (SalesPersonProduct) SalesPersonProductId INT (PK, Clustered) SalesPersonId INT (FK - non-unique - Nullable) ProductId ...
(0) odpowiedzi
2017-03-26 21:03 jQuery datatable server paging keep selection »
I have a ASP.NET MVC application where Im using jQuery Datatables to show some data. The table is server paged because I can have more than 10,000 re...
(0) odpowiedzi
2017-03-26 20:03 Performance gain implementing concatMap with foldl' for finite list? »
I read from Foldr Foldl Foldl' that foldl' is more efficient for long finite lists because of the strictness property. I am aware that it is not suita...
(1) odpowiedzi
2017-03-26 19:03 Fastest way to loop with index »
What's the fastest way to loop over a 3d numpy array if I need to know the indeces. ... some sort of loop ... do something with each element th...
(1) odpowiedzi
2017-03-26 14:03 Rust file I/O is very slow compared with C. Is something wrong? »
To compare file I/O performance between C and Rust, I write "test" to a file 100,000,000 times and read 4 bytes from a file 100,000,000 times. Compar...
(1) odpowiedzi
2017-03-25 22:03 Arduino can't process serial fast enough »
So my Arduino is taking almost 200ms processing a total of 128 bytes. The whole process without writing over the serial port is only taking 25ms. Why...
(1) odpowiedzi
2017-03-25 20:03 Strange JavaScript / Node.js Performance Issue »
At the moment I am struggeling with a very strange performance issue. The average it takes for the SlowHeap is 1448.623ms while the FastHeap only requ...
(1) odpowiedzi
2017-03-25 18:03 Facebook comments loads very slow »
Facebook comments component load same JavaScripts many times and slows our page with 1.2+seconds sometimes load for 29sec Please help. the script i...
(0) odpowiedzi
2017-03-25 13:03 How to store numpy objects ( matrices ) fast? »
I have to store a list of numpy matrices. Two approaches I tried: 1.Create a list and append to it: ls_ws=[] for ind in range(iterations): ... ...
(2) odpowiedzi
2017-03-24 19:03 Fast way to read nth line from file »
Introduction I have a C++ process called MyProcess that I call nbLines times, where nbLines is the number of lines of a big file called InputDataFile...
(3) odpowiedzi
2017-03-24 08:03 Update SQL table very slow »
I have problem when I try to update SQL table with I have datagridview and I need to update SQL table and take the value form my datagridview . my da...
(2) odpowiedzi
2017-03-24 03:03 Fast group rank() function »
There are various ways people try to emulate MSSQL RANK() or ROW_NUMBER() functions in MySQL, but all of them I've tried so far are slow. I have a ta...
(1) odpowiedzi
2017-03-23 17:03 Performance difference with various List intialization and population techniques »
I was trying to find out if setting the capacity of a list in the constuctor could flatten the already negligible performance differences between usin...
(1) odpowiedzi
2017-03-23 09:03 Get the execution time of a ADO.NET SQL Command »
I have been searching over to find if there is any easy way to get the Execution time of a ADO.NET command object. I know i can manually do a StopWat...
(3) odpowiedzi
2017-03-23 00:03 Why is this SIMD multiplication not faster than non-SIMD multiplication? »
Let's assume that we have a function that multiplies two arrays of 1000000 doubles each. In C/C++ the function looks like this: void mul_c(double* a,...
(3) odpowiedzi
2017-03-22 10:03 Measure expected time to execute any function »
Often in Machine Learning, training consumes a lot of time and though, this is measurable, but only after the end of training. Is there some method w...
(2) odpowiedzi
2017-03-22 10:03 How to improve query performance with auto increment field as primary key »
I'm using following query of third party application that seems to be taking too time for executing in PHP. Table Structure SELECT auto_id, customer_...
(2) odpowiedzi
2017-03-22 07:03 Dash path effect making screen sluggish »
I am trying to make a custom view with concentric circles made up of dots. I have attached a screenshot for reference. Till the time custom view just ...
(2) odpowiedzi
2017-03-21 18:03 Comparing two matrices row-wise by occurrence in NumPy »
Suppose I have two NumPy matrices (or Pandas DataFrames, though I'm guessing this will be faster in NumPy). >>> arr1 array([[3, 1, 4], ...
(3) odpowiedzi
2017-03-21 15:03 Post-call/runtime performance implications of Object.defineProperty »
If, during the loading stages of a script, many properties are defined using Object.defineProperty, Object.defineProperties or Object.create. And most...
(1) odpowiedzi
2017-03-21 11:03 Is there a performance impact when using a method instead of a function? »
I like to work with classes and methods instead of bare functions. I am wondering if there is a specific performance impact to do so (either in execut...
(2) odpowiedzi
2017-03-20 22:03 Ignoring old UDP packets Python »
I am writing code for a system that communicates via Wifi that consists of an Android device sending UDP packets through a router to a Raspberry Pi. T...
(1) odpowiedzi