Questions tagged [performance]

45736 questions
1

votes
0

answer
156

Views

multiple query vs batch performance with Mybatis in Spring

I have one question. multiple query vs batch with mybatis in Spring example) case 1. allowmutiquery=true and one call call 'mutiquery' ; update ... set .... case 2. loop multiple call and batch execute for( ; ; ){ call 'batch' ; } update ... set .... what is the way better?
J.K.R
1

votes
2

answer
395

Views

Preprocess the input data slow down the input pipeline when using Tensorflow Dataset API to read TFRecords file

I am using Tensorflow Dataset API to read TFRecords files, but the GPU usage is still low (10%). I reckon the cause is that I preprocess the data before they are fed into the sess.run(). Here is my code below. 1. Create a dataset from 3 separate files. tf.reset_default_graph() # The content of TFR...
Lion Lai
1

votes
2

answer
71

Views

Tensorflow multiplication of constants performance slower than tf.random

I'm using Tensorflow for some non-DL computation, and I'm running into a behaviour I don't understand. I am testing the multiplication of a square matrix by itself: tf.matmul(a,a): when the matrix is created with tf.constant when the matrix is randomly initialized at each run My expectation is that...
Anna-Chiara Bellini
1

votes
0

answer
1.7k

Views

perf have no permission to collect stats

When I use perf to collect system stats, like this sudo perf record -a -g -F 997 -p pid sleep 30 then I got Error: You may not have permission to collect stats. Consider tweaking /proc/sys/kernel/perf_event_paranoid: -1 - Not paranoid at all 0 - Disallow raw tracepoint access for unpriv 1 - Disallow...
bloomstar
1

votes
1

answer
483

Views

Searching 13 million records using full text search with additional conditions

Performance issue while doing SQL Server full text search with additional conditions. (SQL Server 2012) I am trying to filter the data based on search filters list (table value parameter), which will return all the records for match filters and single record for the filter doesn't have any record fr...
K.Engineer
1

votes
0

answer
406

Views

PostGIS st_intersects() and spatial index

I have huge troubles understanding the usage of indexes by PosrgreSQL/PostGIS. I have two spatial datasets: building outlines and flood polygons. There are 4.700 flood polygons that are quite complex (many vertices) and 1.100.000 building outlines. I import them into the database using QGIS. The ge...
JerT
1

votes
0

answer
29

Views

Why Loading Images takes so much memory even though their sizes are 2KB

I have 5-6 PNG images each 2kb in size, and when i load them to my ImageView's, on Android Monitor it shows 12 MB more added to allocated memory. i don't know what other factors are there that takes so much memory. while i see other applications that are using many images per screen, they have no is...
garetHollamdaf
1

votes
0

answer
233

Views

Tomcat 8 first request processing is slow for first request

I'm working on a high performance java application. I deployed in Tomcat 8. First request processing is slow i.e. it is taking 800 milli seconds to process. After that every request is processing very fast within 50 milli seconds. I think for initial request class loading takes time. My requirement...
Naresh Muthyala
0

votes
0

answer
5

Views

MTKView Drawing Performance

What I am Trying to Do I am trying to show filters on a camera feed by using a Metal view: MTKView. I am closely following the method of Apple's sample code - Enhancing Live Video by Leveraging TrueDepth Camera Data (link). What I Have So Far Following code works great (mainly interpreted from abov...
Gizmodo
1

votes
0

answer
40

Views

Launch activity faster with recyclerview UI from another activity

I have a RecyclerView. When an item is pressed, another Activity with another RecyclerView appears. The problem is that the second Activity needs a few seconds for loading. I want to make the Application more responsive launching the Activity before the RecyclerView Adapter is ready. In other words,...
Giulio Pettenuzzo
1

votes
2

answer
48

Views

Is there a large performance hit when creating a class vs sticking with the singletonian nature of required modules?

I'm architecting the model layer on an MVC structured project. I'm looking at 2 solutions - listed below - and the performance hit from instantiating a new class every request. (if anyone else has another pattern recommendation, I'm open to it) Singleton const MySQLConnection = require('../configs/m...
lewicki
1

votes
0

answer
58

Views

Is it good design to loop through many users? - SpringBoot

I am looking into good design principles and would just like some feedback. I want to go through every user in my application that is a patient, check their scheduled activities, see if there is one upcoming and send them an email. It looks a little like this: List listOfAllPatients = patientReposi...
jackabe
1

votes
0

answer
205

Views

TensorFlow conv2d slow compared to others

I'm trying to use TF to do some filtering. I have 60 images of size 1740 x 2340 and a guassian filter of size 16 x 16. I ran a conv2d as strides = [1,1,1,1] data_ph = tf.constant(data,tf.float32) filt_ph = tf.constant(filt,tf.float32) data_format = 'NCHW' conv = tf.nn.conv2d(data_ph,filt_ph,strides,...
user3347617
1

votes
0

answer
216

Views

~200ms delay in Windows Sockets - why?

I have a performance problems with a TCP connection on Windows. My server sends a message to my client (frame 1049), which the client is supposed to answer immediately. The client does answer the message, but only with a delay of 188ms (frame 1057). The PSH bit of the server message is set. Since 18...
Christoph Albert
1

votes
0

answer
60

Views

Queuing of Request taking around 1-3 sec delay in chrome browser for angular2 and RX js

I am currently working in angular-2 project and using RX js. During performance analysis get some issue for HTTP calls,Below is the details about the problem. There is 1-3 sec delay for queuing the two subsequent request. below is the screen shot for the same can anyone help me out why this delay oc...
gourab
1

votes
0

answer
301

Views

Profiling GPU code for power draw and resource utilization

I am trying to calculate the power consumption of different kernels of my OpenCL code for my MJPEG decoder. I used the following command to calculate the power consumption and resource utilization of various kernels by using the following command (This is just an example): nvidia-smi -q -d POWER,UTI...
a_sid
1

votes
1

answer
50

Views

Unit Test for Service

How do I properly test this method, my test is bellow can someone tell me if its ok or not ? public List findByCategory(String category){ List bookList = bookRepository.findByCategory(category); List activeBookList = new ArrayList(); for (Book book: bookList) { if(book.isActive()) { activeBookList....
valik
1

votes
0

answer
230

Views

ASP.NET CORE WebApi message consuming performance issue with RabbitMQ

I'm using the .net client for rabbitMQ in my asp.net core webApi. I'm connecting to an exchange, declaring a queue and then start consuming it through a channel. The problem here is that when I publish a 'large' number of messages at the same time to this specific queue, the consuming performance st...
Gabriel Bombardi
1

votes
1

answer
49

Views

Performance issue: 1 simple script tested on 2 spreadsheets, execution time differs (from less than 1s to 7s)

I tested a simple script on 2 different spreadsheets and the execution took less than 1 sec for the first spreadsheet and about 7 sec for the second spreadsheet (even though it's the same code). Here is the code, very basic (just retreiving a value in a sheet), used on the 2 spreadsheets: function t...
Julien
1

votes
0

answer
158

Views

Drawing very slow with Canvas and SurfaceView

I have created an Android 5.1 application with which I can write with a stylus on a tablet using SurfaceView and Canvas. You can find my code below. Unfortunately, the writing is very slow, especially when lot of text is written it starts getting slow. I think the problem is that it is rendered in s...
machinery
1

votes
1

answer
254

Views

Realm query with IN operator slow

Could I get some help with these Realm queries. Database has over 400K records, both 'length' and 'key' are indexed. When filtering using the following query (note the IN containment part has about 40,000 random-unique(no-duplicates) elements, the query takes over 25seconds let predX = 'length == 8...
sweepez
1

votes
1

answer
292

Views

Inconsistent web page load time on Azure

I am troubleshooting a website that is having inconsistent load time. The website is a normal web application connected to an SQL azure database. It is loading the same data and blobs each time it loads. The website takes around 3 seconds at times, 6-7 seconds at other times, and occasionally even...
user1447435
1

votes
0

answer
195

Views

Why is DataGridView (re)draw so slow?

I know there are several questions in SO about slow DataGridViews, but I tried really everything mentioned there and most are about more complex databinding. what I did before: I tested DataTable as Datasource unbound Datagridview, populated in a loop tested many setting with autoColumnResizing etc....
Falco Alexander
1

votes
0

answer
341

Views

Azure webapp files loading slow

I have a problem with an Azure WebApp that is running very slow (loading times +3min with a cleaned cache). The web app is a single page application, so the first load is the biggest. Always On is enabled. The tier is currently at B2. An example of the slow loading The metrics of the application pla...
Thomas Nauwelaerts
1

votes
1

answer
79

Views

Find Metrics using Stagemonitor

I am trying to using stagemonitor for get metrics for different methods. I used sample PetClinic application locally for get a idea. I want to get metrics only what i need , not all of them is any possible to do that. I change some code for my testing purpose @RequestMapping(value = '/owners/test',...
1

votes
2

answer
100

Views

Differences between FrangmentTransaction and Intent

As taught by Udacity, typically one should use an intent to start a new activity (which presumably shows new/different information). But, for the project I'm currently working on I've been using FragmentTransaction to show different areas of the app. I figure this would lead to a smaller apk (b/c no...
1

votes
1

answer
45

Views

Filament Group's loadCSS vs. ajax

Filament Group's loadCSS library seems to be the de-facto standard for loading CSS asynchronously. Even Google suggests using the library. However, I was wondering why not just use ajax to load the CSS asynchronously. Something like this: fetch('styles.css').then(response => { const el = document.cr...
Philipp Mitterer
1

votes
1

answer
58

Views

How does python pre-process the script and read files efficiently for fixed subset of large amount of images

I need to read a subset of files from a large number of files. To read the subset of the files, we will first provide a list of indices to obtain the filenames, and use some python classes to read the subset of files using the filenames. Let's say we have 15,000 images with the filenames stored in t...
chesschi
1

votes
1

answer
293

Views

Angular2 setinterval blocked while dom changes

I have a basic Javascript/JQuery application that I'm now moving to Angular2, using material.angular.io for my UI. In the old version, when I used 'setInterval(func,200);' to query a server every 200ms, it was called every 200ms, even while adding DOM elements using JQuery's append(content) or html(...
OmriSoudry
1

votes
0

answer
139

Views

Python Data Loading slow performance

I'm trying to read excel and bulk upload data to SQL Server Table. Data Loading works perfectly but it is taking longer than expected time. 28,000 record is taking 80 sec. I need to load 2-3 GB file in several occasions. I'm quite new to Python, Can you please take a look at the script and let me kn...
Partha
1

votes
0

answer
24

Views

Fastest way to call two functions multiple times without using a list of input parameters

I have written a small programm that uses a pipe. The parent takes care of camera connection while the child is processing the images. The child process calls two functions FunctionA and FunctionB. Both times the image from the parent is processed. I want to run the two functions as fast as possib...
Max Krappmann
1

votes
2

answer
371

Views

Are requests made by React Native Fetch API captured by Firebase Performance Monitoring?

I installed Firebase Performance Monitoring to my React Native iOS project 2 days ago. Yesterday and today I looked into Network Requests tab in Firebase Console. Only few requests from graph.facebook.com, googleapis.com, and google.com/gcm appeared. None of API requests made by Fetch API in React N...
PaperMonster
1

votes
1

answer
231

Views

Network activity from crashlytics when my app is paused

I am seeing following network activity when my app is in the paused state. These are the URLs that Crashlitics is hitting: https://api.crashlytics.com/spi/v1/platform/android/apps/ https://e.crashlytics.com/spi/v2/events I am attaching the trace for /events POST request from the profiler. Why is Cra...
Pradeep Reddy
1

votes
0

answer
29

Views

Performance degrade while fetching it from views PostgreSQL

I am running this query and i am getting a low performance. We have fetch the data from views but some how it is giving low performance. I got explain analyze 'Aggregate (cost=387.95..387.96 rows=1 width=0) (actual time=0.561..0.561 rows=1 loops=1)' ' -> Unique (cost=387.95..387.95 rows=1 widt...
Archana Chokhani
1

votes
1

answer
452

Views

On some devices, Google Mobile Visions CameraSource returns low resolution image after calling takePicture

After I call: cameraSource.takePicture(null, pictureCallback); in the callback: private CameraSource.PictureCallback pictureCallback = new CameraSource.PictureCallback() { @Override public void onPictureTaken(byte[] bytes) { try { Log.d(DEBUG_TAG, 'On picture taken.'); if (bytes == null) { return;...
V.Bhat
1

votes
1

answer
157

Views

which mode in intel x86-64 is faster to execute instructions

Intel has - real mode - protected mode - virtual real mode - 64-bit mode Out of these modes, which one execute the same sets of instructions faster? using prefixes one can change the addresses & sizes that can similar to other modes.
Lakshman Siddardha
1

votes
0

answer
272

Views

Jenkins Performance plugin result export

I am new to the whole devops world and in the process of learning things. The context is, I have installed the performance plugin in Jenkins and using jmeter to run my tests. I was able to successfully pull the results into Jenkins and when I hit the performance report I am able to see the graphs w...
user3686627
1

votes
1

answer
35

Views

MySQL How to Optimize Sub Query Performance

I just created a table with: CREATE TABLE `table_test` ( `time` date NOT NULL, `line_id` char(36) NOT NULL, `location_id` char(36) NOT NULL, `placement_id` char(36) NOT NULL, `flight_id` char(36) NOT NULL, `impressions` int(11) DEFAULT `0`, PRIMARY KEY (`time`,`line_id`,`location_id`,`placement_id...
Thanh Thai Nguyen
1

votes
1

answer
418

Views

Better way to write method either POJO or Utility?

Which is the better way to create method 1)Create static method in DataUtils.java class or 2)Create method in pojo Claimheader.java class . My question is if we create a method in POJO class it will affect any performance . In our project, we have lots of methods added in POJO class with only get...
Sitansu
1

votes
0

answer
164

Views

Oracle Automated Stats Collection not Analyzing Some tables

I have turned on automated stats collection in my database. select client_name, status from dba_autotask_client where client_name = 'auto optimizer stats collection' auto optimizer stats collection ENABLED But when I query the USER_TABLES, I see only some of the tables are being ANALYZED.
oradbanj

View additional questions