Questions tagged [performance]

For questions pertaining to the measurement or improvement of code and application efficiency.

1
vote
0answers
3 views

How does Solr's spellcheck.collate influence performance?

The Solr documentation on spellchecking parameters states (emphasis mine): spellcheck.collate If true, this parameter directs Solr to take the best suggestion for each token (if one exists) ...
-1
votes
0answers
6 views

How to test network speed from my local PC to my server?

I have a Linux server, hosts a web app. How to test the speed form the server to my local PC? Or I have to install a 3rd party app to test this, like Netperf or iperf ?
0
votes
1answer
16 views

ORALCE PL\SQL: best practice to count rows to prove feedback before use them

i'm current locking for the best way to count the number of rows i'm gonna use for some calculus before trully use them. The reason is that i need to prove feedback like "analyzed 1/100 rows", "...
0
votes
1answer
14 views

Python Codility Frog River One time complexity

So this is another approach to probably well-known codility platform, task about frog crossing the river. And sorry if this question is asked in bad manner, this is my first post here. The goal is ...
0
votes
0answers
8 views

MATLAB Class Efficiency

I try making it short. I got a problem involving numerical simulation of a flow withing a gas pipe. I simulate using different models for the air flow (transport equations) travelling from one ...
0
votes
2answers
13 views

Flutter - Complex functions in initState() slowing down navigation and performance

I am working on this app, where you can navigate to a screen with a stateful widget that has a bunch complex functions that run in initState(). Due to these functions, navigating to this screen takes ...
-1
votes
1answer
5 views

Performance testing in neoload

I am new to performance testing and I have a scenario in which there is an interviewer login in into the application and conducting an interview with the client.the candidate has to login at the same ...
0
votes
1answer
40 views

Performance Optimization for LINQ query in property getter

So I have a class which models a Sale made in a store. The Sale class has a List of Payment. The sale class always has a property called PointsPaid which uses LINQ to find the Sum of the payment ...
0
votes
1answer
16 views

Why is the reason of React's better performance over direct DOM manipulation using JQuery?

I have doubts related with DOM manipulating in reference to comparison between React Virtual DOM and JQuery direct DOM manipulation. Let's say we want to update one DOM node: A)by using React.js : ...
0
votes
0answers
18 views

Spark Executor low performance while writing a dataframe to parquet

Spark version : 2.3 hadoop dist : azure Hdinsight 2.6.5 Platform : Azure Storage : BLOB Nodes in the cluster: 6 Executor instances : 6 cores per executor : 3 Memory per executor : 8gb Trying to load ...
4
votes
1answer
50 views

How to optimize a 2 table query where data can be only discriminated based on both tables?

I have the following 2 tables and data distribution: drop table if exists line; drop table if exists header; create table header (header_id serial primary key, type character); create table line (...
0
votes
1answer
8 views

In JMeter, Getting “Object moved here” response for login post request while performing Load test in Asp.net Web app

I have performed Load testing in Asp.net application using JMeter. While login, am getting "Object Moved Here" message as response. In View result tree, I found Login main sampler displaying with two ...
0
votes
0answers
27 views

How to profile a controller action with Rails?

I have a controller action which renders some JSON with the help of a service class, something like: def index render json: ServiceClass.search(params) end The ServiceClass's .search method is of ...
0
votes
1answer
16 views

What's the fastest and most memory efficient BZip2 decompression tool to use in Java

Currently using the Apache Commons Compress package which uses about 60% of the overall heap and takes around 6 minutes to decompress about 500 files each 4-5Mb when decompressing BZip2 files. My ...
1
vote
2answers
33 views

Use of Context API vs CloneElement for passing down props for direct descendent

So, I have two components, one is always going to be a direct descendant of another. I want to pass props from parent component to the child. There could be more than one child components. There're ...
1
vote
0answers
22 views

MYSQL Huge records and find each nearest point

I have some trouble when I come across with MySQL. I have a table deviceLog which store vehicle log consist of: 1. DeviceID 2. dateTime 3. Latitude 4. Longitude The device will store a log into the ...
0
votes
0answers
15 views

Use C++ to query data to MongoDB in Node.js application

I have bump to this Node.js C++ Addons. Node.js is built on Google Chrome's JavaScript V8 Engine which is written in C++. That is how we can use C++ Addons. MongoDB is also written in C++ ...
0
votes
0answers
7 views

How to setup Apache 2.2 worker module to run for Wordpress efficiently

I have a Linode Server with 8GB RAM with Debian. I installed on it Wordpress 4.9.4 and a custom theme (http://champion.stylemixthemes.com/) After completing the installation, I noticed the server was ...
0
votes
0answers
15 views

rds mysql performance slow under connections

I have a db.r4.4xlarge (should be able to handle 10000 connections per aws's metrics) mariadb rds instance on aws. Today we saw a big spike in database connections (around 1000 simultaneous and ...
0
votes
0answers
13 views

Ruby Performance: Why can using `require` directly before usage be slower on some systems than many `require`s earlier in the loading process?

I contribute to the open source mobile automation command line tool fastlane, which is written in ruby. We have the problem, that fastlane needs quite long to start up before it does any actual work. ...
1
vote
3answers
45 views

How to efficiently store a set of tuples/pairs in Java

I need to perform a check if the combination of a long value and an integer value were already seen before in a very performance-critical part of an application. Both values can become quite large, at ...
0
votes
1answer
7 views

How do you know if an application running on a host is making the full use of its processing power?

How do you judge/understand how well its doing based on real time traffic and extrapolate how to scale the host capacity? What I could come up was to base the understand of the load around TPS (...
0
votes
0answers
44 views

Better performance than document.createElement

So, i have some piece of code that dynamically creates a lot of different inputs, and the execution of this specific piece of code is really slow. Every document.createElement that runs is taking ...
1
vote
1answer
35 views

Web Assembly (Wasm), garbage collection

I heard Webassembly will is a compilation target for statically typed languages and can be run in the browser. Claims were made that it could run in the browser at (close to) native speed. This is ...
0
votes
1answer
17 views

How to get an IDS list of a Json type object with LINQ

If you wish to obtain a list with the IDS of the Acl class, the problem is that these are contained in a list of Companies in the following way... COMPANY:CS public class Company { [JsonProperty(...
0
votes
0answers
36 views

Java & Reflections [duplicate]

Well I know there are already a lot of questions about this topic. But I'm still very feeeling very insecure. Sorry for my bad english! So I'm working as software developer for about two years now. ...
21
votes
2answers
2k views

Why is this loop faster than a dictionary comprehension for creating a dictionary?

I don't come from a software/computer science background but I love to code in Python and can generally understand why things are faster. I am really curious to know why this for loop runs faster than ...
0
votes
0answers
7 views

How to profile webpack build time beyond --profile?

I tried using --profile flag and discovered that one of my modules took 5.5 seconds, only being 19KB. This is suspicious, but how can I investigate further why it took so long?
-4
votes
0answers
24 views

best javascript automation testing tool [on hold]

We are using Bootstrap with javascripts..We planned to have automation testing tool for javaScripts. Based on analysis, jasminJS and protractorJS looks better to use...Please let us know which one is ...
-1
votes
0answers
43 views

High Speed compression for raw data in language C

I need to compress raw unknown data <= 4MB to smaller (the size is not important here). The most important part is the speed of the compression. I need to keep datas as data. I can't make a file ...
0
votes
0answers
33 views

Very slow JVM threads creating (very long pauses in java.lang.Thread.setPriority0())

We have a JVM performance issue on one of our host machines. The host machine is 16 CPU cores, 16Gb RAM, Windows Server 2012 is the host OS. JVM is 1.8 131, Xmx is 10Gb, but 2-3Gb is enough for the ...
-6
votes
0answers
50 views

Reflection optimization: GetMethods once or GetMethod many times? [on hold]

I have an operation that queries for a method via reflection, and this operation executes several times, but always over the same class. I'm rephrasing the question trying to clarify its meaning. I'...
0
votes
0answers
19 views

Json Jackson subclass/children's fields unrecognized

I am using the below Jackson saver and loader to load class Lion: saving: public void savePerson(File f, Animal[] cache) { ObjectMapper saveMapper = new ObjectMapper() ....
1
vote
1answer
28 views

Add information to a bufferWriter before flushing it java

This is kind of tricky. i understand that the BufferedWriter stores the information before i write in in a file before executing the act of writing it in a file using flush() , Append() etc.. I ...
1
vote
0answers
42 views

Excel VBA - screenupdating anomaly when opening multiple workbooks

Intro: I have a master workbook (A) and two other workbooks (B & C). The master workbook has a userform from which i do the following sequence: Open B -> run a macro that calls several other ...
4
votes
0answers
79 views

Why does cpu time have usually larger fluctuations than real time in benchmarks?

When examining the output of my benchmarks with the Google Benchmark framework, I observed that the standard deviation of the measured cpu time was in many cases significantly larger than the standard ...
0
votes
0answers
11 views

Azure durable function. what is the expected activity throughput?

I have an Azure Durable function activity function which traverses some nested data recursively. In each recursion I insert a row into a SQL Server database. I do not do anything special with the ...
-1
votes
1answer
42 views

Why Python3.6 showing better results than 3.7?

I have the following code (Its useless, just for performance testing) class A: def __init__(self, i): self.i = i start = datetime.now() foo = {} for i in range(10000000): foo[i] = A(...
0
votes
0answers
15 views

Android Profiler is not analyzing CPU & Memory Performance for Flutter Applications

There is Android Profiler for Android application performance monitoring. It is working for an android based project but not for the Flutter Application. This one is picked from and Android ...
-2
votes
1answer
16 views

hazelcast v3.10.5 vs ehcache 3.6.1 differences and performance

Hazelcast v3.10.5 vs ehcache 3.6.1 differences and performance. Two popular cache frameworks evolved over a period. we are in now 2018. Which cache framework to use hazelcast or ehcache. We choose ...
-1
votes
1answer
118 views

Why Golang is faster than ANSI C and how can I optimize my solution?

I wrote benchmarks to check how fast if statements can be handled by Golang and ANSI C respectively. I was trying to keep the same schema overall solutions. Solution in ANSI C is following: #include ...
6
votes
1answer
72 views

Why is the 'Function Body' bottlenecking my application?

The application I am developping runs too slowly. I have run the performance diagnostics of Visual Studio, and found out that one single function was running 66% of the time, the GetHashCode function ...
0
votes
0answers
28 views

Layout inflation 3 times slower on Nexus 5X compared to older Nexus 5

I've noticed that inflation of a certain layout of mine takes up to 3 times longer on a Nexus 5X (Oreo 8.1.0) compared to an older Nexus 5 (Marshmallow 6.0.1). The layout looks like below. As ...
2
votes
1answer
27 views

Does Azure Blob filter “prefix” of blob's name?

The requirement is get all available BlockBlob that's name start with given prefix: I used API: CloudBlobClient.ListBlobs(prefix: "test").OfType<CloudBlockBlob>.Select(b=> b.Name).ToList(); ...
0
votes
0answers
24 views

SQL SP help query performance needed for displaying recording in ASP.NET after clicking submit button. Taking 8minutes for 2.5million records

ALTER PROCEDURE [dbo].[getmytrasactions] @pageindex int, @pagesize int, @whereclause varchar(1024), @orderby varchar(1024), @direction varchar(1024), @starttimestampdate ...
-1
votes
0answers
28 views

Improve the speed of Product attributes conditions - Woocommerce

I have a quick question about woocommerce loading speed for product attributes conditionals. Currently, we are using OrionOrigin's Visual Product Configurator It works fine except that the page loads ...
0
votes
0answers
22 views

Why isn't using a document fragment way better for performance when appending multiple elements to the DOM

First of all, this is not the same as this question, although you may think it is as first glance: Does using a document fragment really improve performance? See: this js fiddle https://jsperf.com/...
2
votes
1answer
23 views

PostgreSQL table design for frequent “save” action in web app

Our web based app with 100,000 concurrent users has a use case where we auto-save the user's activity every 5 seconds. Consider a table like this: create table essays ( id uuid not ...
1
vote
0answers
18 views

When should i use async/await in Python?

Meta Context: I'm building an api using aiohttp. Since it's an asynchronous framework, I have to use async to define handlers. Example: async def index_handler(request): return web.Response(text=...
0
votes
0answers
15 views

Android WebViewClient find if its user-click or auto-redirect?

I understand that whenever a redirect happens WebViewClient.shouldOverrideUrlLoading(WebView wv, String url) gets called for both user-click and auto-redirect. Requirement is to perform a special ...