Data dodania Pytanie
2018-02-18 20:02 how to stop skipping 1100 frames »
I have 2 below that run a search functionality but Im skipping anywhere between 200-1100. it uses the openLibrary Search API as well as referencing m...
(1) odpowiedzi
2018-02-18 11:02 What are Parse, Compile and Evaluate in DevTools Performance tool? »
When running JS scripts in Chromes' Performance tab, I see there are three steps for JS interpretation: Parse, Compile and Evaluate. Sometimes I just ...
(1) odpowiedzi
2018-02-18 10:02 What is the difference between combining array by using reduce or joined? »
Consider the following array -of strings-: let arrayStrings = ["H", "e", "l", "l", "o"] For combining its elements (to get "Hello" as single String...
(2) odpowiedzi
2018-02-18 03:02 How singleton scoped bean of spring behaves in web application? »
While going through a code I found that all the beans are defined as singleton in a web application. This got me thinking what will happen when multip...
(2) odpowiedzi
2018-02-17 08:02 Is it possible for a website to heat up a android Device and cause faster battery draining? »
I am developing a website which is a Single Page Application (built on AngularJS). However, my client complains that using the website is causing use...
(3) odpowiedzi
2018-02-17 04:02 Euler Project #520, making current code more efficient for finding simber integers? »
Recently, for my Computer Algebra Systems class to work on. I have been given a problem randomly assigned from Project Euler to solve (Problem 520). T...
(1) odpowiedzi
2018-02-17 00:02 GC Issue when running tomcat with TLSv1.2 »
We have been facing a performance issue with tomcat7/java8 when we run it with ssl enabled. We see frequent long Full GC's occurring and the other st...
(0) odpowiedzi
2018-02-16 22:02 Bitmap creation and drawing speed slow... and fast »
This is in small part a question (because I don't understand why it makes a difference), and in large part a post to hopefully help some other poor pr...
(1) odpowiedzi
2018-02-16 19:02 GUI in DrRacket running slow on laptop (low FPS) »
for a project i have to remake the game "Donkey Kong", i have done most of it, but for some reason the game is slow "laggy" on my gaming laptop (10-40...
(1) odpowiedzi
2018-02-16 13:02 neo4j performance multiple queries same data »
I'm solving a complex pathfinding problem in my database that can't be expressed in Cypher, so I need to divide it up into multiple queries (and write...
(1) odpowiedzi
2018-02-15 16:02 Performance overhead from System.getCurrentTimeMillis() »
I'm making a sort of probability simulator that will run for either a certain amount of time, or for a certain amount of repetitions. I'm looking to ...
(1) odpowiedzi
2018-02-15 15:02 Are hardcoded conditions optimized by JVM in Android? »
Due to debugging reason most parts of the code in my application has this recurrent portion of code: public static final boolean DEBUG = true; // jus...
(1) odpowiedzi
2018-02-15 15:02 Perf startup overhead: Why does a simple static executable which performs MOV + SYS_exit have so many stalled cycles (and instructions)? »
I'm trying to understand how to measure performance and decided to write the very simple program: section .text global _start _start: mov ra...
(1) odpowiedzi
2018-02-15 11:02 Compute the cumulative sum of a list until a zero appears »
I have a (long) list in which zeros and ones appear at random: list_a = [1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1] I want to get the list_b sum of the ...
(6) odpowiedzi
2018-02-15 05:02 using PHP & MySQL... How do I free memory? »
Requirement: We have two similar tables in two servers. First table in server having unique key columns A,B,C and we are inserting Table1 rows in...
(1) odpowiedzi
2018-02-14 21:02 Will a JavaScript environment eventually recover after changing the [[Prototype]] of an object? »
So, I've read the MDN disclaimers and warnings, I've read a great answer on the subject, but there's still something I want to know. This question act...
(1) odpowiedzi
2018-02-13 14:02 Simple getter/accessor prevents vectorization - gcc bug? »
Consider this minimal implementation of a fixed vector<int>: constexpr std::size_t capacity = 1000; struct vec { int values[capacity]; ...
(0) odpowiedzi
2018-02-13 11:02 Can I reduce the execution time of a script which add elements to a big XML file? »
My goal is to add XML elements to an existing XML file (quite big, ~90MB), while parsing a CSV file to know which element I should target. The hard pa...
(1) odpowiedzi
2018-02-13 04:02 Does the android logger run on the main thread? »
Does the Android logger run on the main thread? If so, does logging big entries have a performance impact on rendering the UI? ...
(1) odpowiedzi
2018-02-12 17:02 Most efficient way to get an integer type id in a family of common base types »
The problem: I have a family of objects with a common base, and I need to be able to identify the specific concrete type via an integer value. There...
(1) odpowiedzi
2018-02-12 16:02 Why is C++ much faster than python with boost? »
My goal is to write a small library for spectral finite elements in Python and to that purpose I tried extending python with a C++ library using Boost...
(2) odpowiedzi
2018-02-12 11:02 writing threads in JavaSript »
Can we achieve multi threading in javascript? If yes, please suggest a method to run multiple tasks on multiple threads in javascript/angular.. Than...
(2) odpowiedzi
2018-02-12 09:02 Why is the first run always much slower? »
I wrote a macro that reports the time required to run a given operation. It runs it a number of times and prints out the time for each run in nanoseco...
(2) odpowiedzi
2018-02-11 23:02 bit cast uint64_t to double and back in a macro »
union uint64_t_double { uint64_t u; double d; }; uint64_t double_to_uint64_t(double d) { union uint64_t_double ud; ud.d = d; retu...
(1) odpowiedzi
2018-02-11 22:02 Efficiently update all items in large flat list in react native »
I'm writing an image picker using react-native's CameraRoll API and rendering them in a FlatList inside CameraRollScreen component. This component tak...
(1) odpowiedzi
2018-02-11 15:02 mobile version FASTER than AMP. AMP showing less »
We end an optimization project for our mobile version and we did know the performance was very good (AMP level good). We also noticed AMP started to s...
(1) odpowiedzi
2018-02-10 14:02 Quickly remove unnecessary whitespace from a (very large) string »
I'm working with very large (45,000,000+ character) strings in VBA, and I need to remove superfluous whitespace. One space (aka, ASCII Code 32) is ok...
(2) odpowiedzi
2018-02-10 11:02 Fastest way to count sequence elements satisfying a predicate »
I want to count the elements verifying a certain property in a throw-away sequence. I am somewhat surprised that a generator expression would not be t...
(1) odpowiedzi
2018-02-10 02:02 Efficiently write millions of lines to a file using Python dataframe »
I have the following code snippet that reads a CSV into a dataframe, and writes out key-values pairs to a file in a Redis protocol-compliant fashion, ...
(1) odpowiedzi
2018-02-09 14:02 Why do these fixpoint cata / ana morphism definitions outperform the recursive ones? »
Consider these definitions from a previous question: type Algebra f a = f a -> a cata :: Functor f => Algebra f b -> Fix f -> b cata alg...
(0) odpowiedzi
2018-02-09 12:02 Best way to measure the execution time of methods »
I'm trying to find the best way to measure the duration of a method to log them on Application Insights, I know it's possible if we do something like ...
(3) odpowiedzi
2018-02-09 09:02 Can you explain this 6-times difference in performance between Chrome browser and Node? »
This is my test code: function norm3Dtest(a) { let i; for(i=0;i<1e+8;i++) { const x = Math.random()*1e+3; ...
(0) odpowiedzi
2018-02-09 09:02 Segmenting numpy arrays with as_strided »
I'm looking for an efficient way to segment numpy arrays into overlapping chunks. I know that numpy.lib.stride_tricks.as_strided is probably the way t...
(1) odpowiedzi
2018-02-08 07:02 Flatlist getItemLayout usecase »
Why we use getItemLayout in flatlist ,how it help to improve performance of a flatlist .check the react-native docs but didn't find a satisfying answe...
(1) odpowiedzi
2018-02-08 04:02 MATLAB Matrix Multiply Code efficiency »
I am using MATLAB to prototype a few matrix multiply techniques and compare efficiency. Eventually, I will move the prototype codes to C. It is for a ...
(0) odpowiedzi