Magento 2 add to cart performance issue

In my magento 2 website adding to cart takes about 10 sec. Caching is OK. Redis is configured. Merging/minimizing for CSS/JS is enabled. I’m notised that after first adding item to the cart , adding to cart of this item takes few seconds (Looks like caching), but after 5 minutes it’s takes too much time again. Maybe there is way to redute time or cache “add to cart” for a long time ? Great thanks and sorry for my english.

oxygen for higher performance stamina

Nerotenze Testo has an improved potential to take in vitamins for better regeneration What are the ingredients of Nerotenze Testo not like different dietary supplements available in the marketplace which can be loaded with artificial elements Following are the natural elements that make this compliment so effective and reliable Tongkat Ali Tongkat Ali has been clinically confirmed to refill testosterone levels…

oxygen for higher performance stamina

How to make best performance to test CPU time of my java program

I am using

ubuntu 18.04 lts.  Intellij Ultimate 2019  Oracle Jdk 1.8.0_211 

I have to test N-Queen solver with java of single-thread.It consumes a lot memory usage.I want to get fastest result of CPU time.

My benchmark machine is
i7 4th gen 3.6ghz with 8 cores.
Ram 8 Gb

I have changed the jvm options in intellij to xmx7000mb.And what ways I need to do to optimize best CPU time ?

Huge two list data should be compared using c# and must ensure performance improves

I have a two list contains huge data and had the following code which I used till now. But have some doubts regarding this, due to lot of confusion about the data is compared or not in the list items. Here I am using sequence Equal to compare the data I have two questions, somewhere I found that sequenceEqual will compare the data in the lists. So used it. 1. Will sequenceEqual compares the data in the lists 2. better way of code to improve performance. As per understanding I kept only three items in both the lists but our requirement has huge data itmes in the lists. so need to improve performance

bool value = false;         List<string> list1 = new List<string>();         list1.Add("one");         list1.Add("two");         list1.Add( "three" );          List<string> list2 = new List<string>() { "one", "two", "three" };         list2.Add("one");         list2.Add("two");         list2.Add("three");         list1.Sort();         list2.Sort();         if (list1.SequenceEqual(list2))         {             value = true;         }         else         {             value = false;         }         return value; 

Exponential search worst-case performance

I’m learning about Exponential search and I keep reading that the worst-case performance is $ log_2(i)$ where $ i$ is the searched index.

I tried with an array containing $ 1073741824$ elements $ (1024*1024*1024)$ and I searched for the $ 1073741823$ th element (which is just $ n-1$ ).

Therefore, I used the exponential search to get the range containing $ i$ (which was $ [536870912 ; 1073741824]$ and it took $ log_2(n)$ to find. Then it took another $ log_2(n/2)$ to find the right index using Binary search in this range only.

Am I doing something wrong? Or is the complexity of the worst-case $ 2*log_2(n)-1$ ?

Any way to improve HP Spectre x360 touchpad performance?

I’m running 19.04, with everything updated. The touchpad feels rather jittery as it moves across the screen using libinput, as if its resolution isn’t great; this makes the rest of the system feel sluggish as well. It’s a lot more smooth under Windows 19, as well as Ubuntu using Synaptics. A random mouse is far smoother. Is there a way to improve the resolution?

Output of xinput list 15:

SynPS/2 Synaptics TouchPad                  id=15   [slave  pointer  (2)]     Reporting 7 classes:         Class originated from: 15. Type: XIButtonClass         Buttons supported: 7         Button labels: "Button Left" "Button Middle" "Button Right" "Button Wheel Up" "Button Wheel Down" "Button Horiz Wheel Left" "Button Horiz Wheel Right"         Button state:         Class originated from: 15. Type: XIValuatorClass         Detail for Valuator 0:           Label: Rel X           Range: -1.000000 - -1.000000           Resolution: 0 units/m           Mode: relative         Class originated from: 15. Type: XIValuatorClass         Detail for Valuator 1:           Label: Rel Y           Range: -1.000000 - -1.000000           Resolution: 0 units/m           Mode: relative         Class originated from: 15. Type: XIValuatorClass         Detail for Valuator 2:           Label: Rel Horiz Scroll           Range: -1.000000 - -1.000000           Resolution: 0 units/m           Mode: relative         Class originated from: 15. Type: XIValuatorClass         Detail for Valuator 3:           Label: Rel Vert Scroll           Range: -1.000000 - -1.000000           Resolution: 0 units/m           Mode: relative         Class originated from: 15. Type: XIScrollClass         Scroll info for Valuator 2           type: 2 (horizontal)           increment: 15.000000           flags: 0x0         Class originated from: 15. Type: XIScrollClass         Scroll info for Valuator 3           type: 1 (vertical)           increment: 15.000000           flags: 0x0 

Output of xinput list-props 15:

Device 'SynPS/2 Synaptics TouchPad':     Device Enabled (169):   1     Coordinate Transformation Matrix (171): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000     libinput Tapping Enabled (308): 0     libinput Tapping Enabled Default (309): 0     libinput Tapping Drag Enabled (310):    1     libinput Tapping Drag Enabled Default (311):    1     libinput Tapping Drag Lock Enabled (312):   0     libinput Tapping Drag Lock Enabled Default (313):   0     libinput Tapping Button Mapping Enabled (314):  1, 0     libinput Tapping Button Mapping Default (315):  1, 0     libinput Natural Scrolling Enabled (316):   0     libinput Natural Scrolling Enabled Default (317):   0     libinput Disable While Typing Enabled (318):    0     libinput Disable While Typing Enabled Default (319):    1     libinput Scroll Methods Available (320):    1, 1, 0     libinput Scroll Method Enabled (321):   1, 0, 0     libinput Scroll Method Enabled Default (322):   1, 0, 0     libinput Click Methods Available (323): 1, 1     libinput Click Method Enabled (324):    0, 1     libinput Click Method Enabled Default (325):    1, 0     libinput Middle Emulation Enabled (326):    0     libinput Middle Emulation Enabled Default (327):    0     libinput Accel Speed (328): 0.659751     libinput Accel Speed Default (329): 0.000000     libinput Left Handed Enabled (330): 0     libinput Left Handed Enabled Default (331): 0     libinput Send Events Modes Available (289): 1, 1     libinput Send Events Mode Enabled (290):    0, 0     libinput Send Events Mode Enabled Default (291):    0, 0     Device Node (292):  "/dev/input/event10"     Device Product ID (293):    2, 7     libinput Drag Lock Buttons (332):   <no items>     libinput Horizontal Scroll Enabled (333):   1 

.Net Core Web Application Asynchronous Performance Suggestion [on hold]

I have a web application(synchronous app) and I’ve migrated it from ASP.NET MVC to ASP.NET Core. I use SQL Server, and my site’s online count is about 200-250 users per Google’s analytic’s data. That may increase in the future.

I’ve read that asynchronous techniques are not good for every situation. I don’t do much IO operation except sql statements. Should I use asynchronous programming techniques for my situation?

samba bad performance when copying from windows to ubuntu

I am very fresh to linux so my apologies if I am saying something that doesn’t make sense.

I have Ubuntu Server 18.04 box (fresh, only installed few days ago) on which I have installed samba and shared a folder using this guide: link

The problem which I have is that when I copy files from this share to Windows PC (over 1Gb wired connection), I am getting around 100MB/s constant transfer speeds which is good.

If I try to copy something in other direction, from windows to linux, the transfer rate is tragic. It starts off nicely but after few seconds it grints nearly to a halt, with speed varying between 0kb/s to max 20MB/s.

This Ubuntu server is a VM sitting on my home ESXi 6.7 U2 host. On the same host I have another Windows Server 2016 VM. If I try to copy files from or to this windows vm, I have steady 112MB/s from and to it. There is no difference between the ubuntu and reference windows VM and they both live on the same subnet.

I have tried different settings in smb.conf, changing from open-vm-tools to proprietary vmware tools, apt upgrade of everything, rebooting the server and client pc, but I can’t crack this one.

Anyone has any ideas?

Both VMs (ubuntu in question and server 2016 for reference) sit on same Raid 10 datastore.

Transfers from Windows point of view:

transfer – windows to linux

transfer – linux to windows

Same as abovebut from the networking point of view: my pc: 10.0.11.12 ubuntu: 10.0.3.12

wireshark – windows to linux

wireshark – linux to windows

Improving particle performance in P5.js

I have modified a particle system to create an effect similar to the one that I want. However, with any substantial amount of particles it performs very slowly on my laptop (around 1.7 fps at the worst when I remove the if statement limiting the creation of new particles). I’m guessing that this is because all the work is on the CPU? Can I batch together the processing somehow?

Demo here.

// Based on https://github.com/benjaminmbrown/particle-system-repeller  var Repeller = function(x, y) {     this.power = 500;     this.position = createVector(x, y);      this.display = function() {         stroke(0);         strokeWeight(2);         fill(127);         ellipse(this.position.x, this.position.y, 40, 40);     }      this.repel = function(p) {         var dir = p5.Vector.sub(this.position, p.position);         var d = dir.mag();         dir.normalize(); //just want the direction         d = constrain(d, 1, 100);         var force = -1 * this.power / (d * d);         dir.mult(force);         return dir;     } }   var Attractor = function(x, y) {     this.power = 150;     this.position = createVector(x, y);      this.display = function() {         stroke(255);         strokeWeight(2);         fill(127);         ellipse(this.position.x, this.position.y, 40, 40);     }      this.attract = function(p) {         var force = p5.Vector.sub(this.position, p.position);         var distance = force.mag();         distance = constrain(distance, 5, 50);         force.normalize();         var strength = 1 * this.power / (distance * distance);         force.mult(strength);         return force;     } }  function Particle(position, velObj, color) {     this.position = position.copy();     this.acceleration = createVector(0, 0.00);     this.velocity = createVector(random(velObj.xMin, velObj.xMax), random(velObj.yMin, velObj.yMax));     color = color || {r: 0, g: 0, b: 0};      this.lifespan = 255;     this.mass = 5;      this.run = function() {         this.update();         this.display();     }      this.display = function() {         stroke(255, this.lifespan); //gets more transparent as it dies         strokeWeight(2);         fill(color.r, color.g, color.b, this.lifespan);          ellipse(this.position.x, this.position.y, 4, 4);     }      this.update = function() {         this.velocity.add(this.acceleration);         this.position.add(this.velocity);         this.acceleration.mult(0);         this.lifespan -= 1.5;     }      this.isDead = function() {         return this.lifespan < 0.0 ? true : false;     }      this.applyForce = function(force) {         var f = force.copy();         f.div(this.mass);         this.acceleration.add(f);     } }   function ParticleSystem(num, position, velObj, color) {     this.origin = position.copy();     this.particles = [];      this.run = function() {         for(var i = this.particles.length - 1; i >= 0; i--) {             var p = this.particles[i];             p.run();             if(p.isDead()) {                 this.particles.splice(i, 1);             }         }     };      this.applyForce = function(force) {         for(var i = 0; i < this.particles.length; i++) {             this.particles[i].applyForce(force);         }     }      this.applyRepeller = function(r) {         for(var i = 0; i < this.particles.length; i++) {             this.particles[i].applyForce(r.repel(this.particles[i]));         }     }      this.applyAttractor = function(r) {         for(var i = 0; i < this.particles.length; i++) {             this.particles[i].applyForce(r.attract(this.particles[i]));             var p = this.particles[i];             var force = r.attract(p);             p.applyForce(force);         }     }      this.addParticle = function() {         var r = random(1);         this.particles.push(new Particle(this.origin, velObj, color));     }; }  var particleSystems = []; var repeller, attractor;   function setup() {     createCanvas(windowWidth, windowHeight, WEBGL);     setFrameRate(60);     repeller = new Repeller(0, 0);     leftAttractor = new Attractor(0, height / 2);     rightAttractor = new Attractor(width, height / 2);      particleSystems.push(new ParticleSystem(1, createVector(width / 5, height / 2), {xMin: 0, xMax: 2, yMin: -4, yMax: 4}, {r: 0, g: 0, b: 255}));     particleSystems.push(new ParticleSystem(1, createVector(width * 4 / 5, height / 2), {xMin: -2, xMax: 0, yMin: -4, yMax: 4}, {r: 255, g: 0, b: 0}));      // Ones not affected by attractor     particleSystems.push(new ParticleSystem(1, createVector(width / 5, height / 2), {xMin: -2, xMax: 1, yMin: -2, yMax: 2}, {r: 0, g: 0, b: 255}));     particleSystems.push(new ParticleSystem(1, createVector(width * 4 / 5, height / 2), {xMin: -1, xMax: 2, yMin: -2, yMax: 2}, {r: 255, g: 0, b: 0})); }  var numDraws = 0; function draw() {     background(255);     // var gravity = createVector(0.0, 0.1);     translate(-windowWidth / 2, -windowHeight / 2);      for(var i = 0; i < particleSystems.length; i++) {         // particleSystems[i].applyForce(gravity);         particleSystems[i].applyRepeller(repeller);         if(i === 0) {             particleSystems[i].applyAttractor(rightAttractor);         } else if(i === 1) {             particleSystems[i].applyAttractor(leftAttractor);         }         // if(numDraws % 3 === 0 || i < 2)             particleSystems[i].addParticle();         particleSystems[i].run();     }     repeller.display();     numDraws++; }  function mouseMoved() {     repeller.position = createVector(mouseX, mouseY); } function touchMoved() {     repeller.position = createVector(mouseX, mouseY); } 

Any insight as to how to improve this performance is appreciated.

Can a device act as a router and a server ? if yes , does it affect its performance and security?

I’ve recently been assigned to manage a network in a small office , my networking knowledge are good ( in theory) and this my first practical challenge. In a part of the network there is device that is connected to a switch having no label and no tag (probably a bit old) , i am a bit confused what would be the functionality of this device ( i believe it acts as server but not sure ). this device has 4 Rj-45 connectors ( one cable comes to one of them from switch , another cable comes from a thin client that we could execute some web-based queries to get info that are supplied into this device from switch ) there is also a usb flash port and a db-9 male serial port . in front of device there 10 small lights ( which at this moment 3 of them are off and the rest are on) , this network can be accessed from another network in office so this device could be a router and at the same time could be a server . is this possible , and all i know there is hard drive in this device that store data coming from switch. what is this device , could i change this to enhance the functionality of the network.