Data dodania Pytanie
2017-11-16 02:11 Most efficient way to find the index of the only '1' bit in a char variable (in C) »
This is an interview question: You are given a char variable named ch, when you know that it represents a number that in its binary form, only one of ...
(11) odpowiedzi
2017-11-15 20:11 How to limit an else statement? - Javascript game »
I'm looking for an explanation on how I would properly implement a 'button' (square) that you would stand on, which would change the background color....
(1) odpowiedzi
2017-11-15 20:11 Changing CSS transform on scroll: jerky movement vs. smooth movement »
I'm dissatisfied with existing parallax libraries, so I'm trying to write my own. My current one consists of three main classes: ScrollDetector trac...
(1) odpowiedzi
2017-11-15 13:11 Which operator (+ vs +=) should be used for performance? (In-place Vs not-in-place) »
Let's say I have this two snippet of code in python : 1 -------------------------- import numpy as np x = np.array([1,2,3,4]) y = x x = x + np.array(...
(1) odpowiedzi
2017-11-15 08:11 Is ProxyCreationEnabled = false is equal to AsNoTracking() in Entity framework? »
Is ProxyCreationEnabled = false is equal to AsNoTracking() in Entity framework? And we can use AsNoTracking() in table level. but how to use AsNoTrac...
(1) odpowiedzi
2017-11-14 20:11 Delphi Seattle 10, multi-threaded/core performance »
I have an application that is 100% Delphi code. It is a 64 bit windows console application, with a workload manager, and a fixed number of workers. ...
(1) odpowiedzi
2017-11-14 19:11 Cython No Performance Increase with prange/parallel »
I'm using Cython version 0.27.3 to compile the following source for a simple primality testing module that contains both python and cython implementat...
(1) odpowiedzi
2017-11-14 12:11 Python code performance on big data os.path.getsize »
Below is my code to get file size in ascending order. def Create_Files_Structure(directoryname): for path, subdirs, files in os.walk(directorynam...
(2) odpowiedzi
2017-11-13 22:11 Why Java Optional performance increase with number of chained calls? »
I was recently asked about the performance of java 8 Optional. After some searching, I found this question and several blog posts, with contradicting ...
(1) odpowiedzi
2017-11-13 17:11 When to use re.compile and what would be better for matching words? »
Bear with me, I can't include my 1,000+ line program, and there are a couple of questions in the description. So I have a couple types of patterns I ...
(2) odpowiedzi
2017-11-13 13:11 Improve DataTable performance when modifying class of cell »
I'm very satisified using jquery DataTables, but I have found one situation where I need to boost performance. I'm updating the class of a cell depend...
(2) odpowiedzi
2017-11-13 10:11 Performance tips for finding unique permutation »
TLDR: how to find multidimensional array permutation in php and how to optimize for bigger arrays? This is continuation of this question: how to find...
(0) odpowiedzi
2017-11-12 21:11 How to detect client disconnect from redis in nodejs? »
I am using the library node_redis as the client for a micro-service message client that I am writing. Clients get messages from their application in t...
(0) odpowiedzi
2017-11-12 17:11 Performant data-tables with JavaScript »
Introduction I am making a request to a backend and getting a list of objects in JSON. Then I change it into an HTML table (it is a Vuetify data-tabl...
(2) odpowiedzi
2017-11-12 07:11 Optimize Web API call »
I have the following controller in a Web Api 2 project: [EnableQuery()] public IQueryable<ItemDTO> Get() { var items = from i in db.Items ...
(1) odpowiedzi
2017-11-12 05:11 What is the performance impact of interning all strings in Java? »
I am working on a trade processing application where I have to deal with a lot of strings. Some of those strings are non-repeating such as a Trade ID ...
(1) odpowiedzi
2017-11-11 21:11 Packing two DWORDs into a QWORD to save store bandwidth »
Imagine a load-store loop like the following which loads DWORDs from non-contiguous locations and stores them contiguously: top: mov eax, DWORD [rsi]...
(1) odpowiedzi
2017-11-11 17:11 Fastest way to find number of lines in go? »
What I'm using right now: numlines := strings.Count(editor.Text(), "\n") fmt.Print(strconv.Itoa(numlines)) message.SetText(strconv.Itoa(numlines)) ...
(2) odpowiedzi
2017-11-11 01:11 Performance of OpenEdge concatenation »
I have noticed in Progress (11.4) that repeated string concatenation can be very slow. For example in the following code. DEF VAR i AS INT NO-UNDO. ...
(2) odpowiedzi
2017-11-10 22:11 Efficient treatment of tuples as fixed-size vectors »
In Chapel, homogeneous tuples can be used as if they were small "vectors" ( e.g., a = b + c * 3.0 + 5.0; ). However, because various math functions a...
(2) odpowiedzi
2017-11-10 15:11 Complex SVG has bad performance in Chrome »
I'm using a rather complex inline SVG with more than 1000 individual paths. I need to style and animate several paths dynamically. Therefore I can't u...
(0) odpowiedzi
2017-11-10 14:11 Fast numpy covariance for arrays of different shape »
I need to obtain the covariance between an array a of shape (M1, M2, N) and another array b of shape (N,). What I currently do is use a for block: i...
(1) odpowiedzi
2017-11-10 00:11 Is constantly instantiating new web workers bad? »
I am currently doing large file uploads using web workers. I have a method that breaks the file into 5MB+ blobs, calculates a checksum(using a webwork...
(0) odpowiedzi
2017-11-09 23:11 An issue with requestAnimationFrame »
While profiling any simple THREE.js animation from built-in examples (https://threejs.org/examples/#webgl_geometry_colors) I noticed an issue with req...
(0) odpowiedzi
2017-11-09 13:11 Efficient way to test for reaching max size of uint64_t C++ »
I have the a class with the following two class members: uint64_t m_numOfOperations; // how many times an operation was done uint64_t m_someOtherM...
(1) odpowiedzi
2017-11-09 13:11 CUDA shared memory slower than global, even when there are no bank conflicts and data reuse is high »
I tried using shared memory to speed up my kernel. The original version, using global memory looks like this: __global__ void my_kernel(float* inout,...
(0) odpowiedzi
2017-11-09 11:11 Mobile vision face detector slow in other function than onCreate »
I am facing an issue with mobile vision, the face detector is very slow, this is when I run the code in a function that is not the onCreate. The detec...
(0) odpowiedzi
2017-11-08 23:11 C++ copy parts of 2D array to another 2D array, performance »
In my program, I have a function that is called thousands of times. The function has one argument, an array of bool values with length=30000. Based o...
(1) odpowiedzi
2017-11-08 08:11 Python: efficient way to find palindrome numbers that are sums of consecutive squares »
This is a problem from codewars. Given an integer N, write a function values that finds how many numbers in the interval (1,...,N) are palindromes a...
(5) odpowiedzi
2017-11-08 07:11 How to sample without replacement and reweigh each time (conditional sampling)? »
Consider a dataset of N rows with weights. This is the basic algorithm: Normalize the weights so that they sum to 1. Backup the weights into another...
(2) odpowiedzi
2017-11-07 21:11 Switching between inputs is slow in a large HTML table »
I have created a wholesale order form in the form of a large HTML table with lots of number inputs. I've noticed that switching between number inputs ...
(1) odpowiedzi
2017-11-07 13:11 Why is Python3 much slower than Python2 on my task? »
I was surprised to know that Python 3.5.2 is much slower than Python 2.7.12. I wrote a simple command line command that calculates the number of lines...
(1) odpowiedzi
2017-11-07 09:11 Is it bad practice to maintain two copies of the same data, if they are in different data structures? »
Say I have a universal set of indexed objects, U, and a subset of these objects, S. S is large (say, 1,000,000 elements), however U is MUCH larger (sa...
(2) odpowiedzi
2017-11-06 23:11 Are Class.cast and Class.isInstance methods in Java 9 actually intrinsic when invoking via class variable? »
I was looking through new intrinsic methods in Java 9 and found that now the method Class.cast is intrinsic too along with Class.isInstance. I did si...
(1) odpowiedzi
2017-11-06 20:11 vector<T>::push_back is used on predefined constructor? »
I am here to ask if my perception is actually true. I originally thought defining vector<T> v(size_t someSize, T init_value) would call a funct...
(0) odpowiedzi