Some associations and conclusions when learning Disruptor

1, Foreword  I ran into the Disruptor during the whole log4j2 two days ago. I was wondering if I could learn some ideas of performance optimization from this blown up concurrency framework. It's really rewarding to learn the source code a little.2, RingBuffer  after a general look, it seems that all points are related to RingBuffer, s ...

Posted on Sun, 28 Nov 2021 14:06:04 -0500 by bivaughn

React performance optimization - avoid duplicate rendering

Function component optimization - React.memoReact.memoReact.memo(ReactNode, [(prevProps, nextProps) => {}])First parameter: componentSecond parameter: user defined comparison function. True is returned when two props are the same, and false if they are different. Returning true prevents updates, and returning false re renders.If the componen ...

Posted on Wed, 24 Nov 2021 06:55:49 -0500 by WiseGuy

Summary of five memory overflow cases: including stack deep overflow, permanent generation memory overflow, local method stack overflow, JVM stack memory overflow and heap overflow

Hello, I'm glacier~~ I believe that in the process of their daily work, they will more or less encounter a scene: memory overflow. If you haven't encountered this scenario, you are a fake programmer. Ha ha, just kidding, we do encounter this problem during our normal work. Today, I will make a simple summary of the memory overflow encountered ...

Posted on Mon, 22 Nov 2021 19:24:29 -0500 by rachelkoh

javascript system series: analysis of browser loop event in js

Hello, I'm Lanfeng. Today I'm mainly sharing with you the browser event loop related to eventloop: eventloop, micro task, macro task, etc. this content is commonly used in our work and is also a question often asked in interviews with large factories. I hope the following chapters will be helpful to you. event loop event loop is the impleme ...

Posted on Wed, 17 Nov 2021 19:30:35 -0500 by shanksta13

Parallel programming and performance optimization of N-Body problem based on CUDA

catalogue N-body problem principle Serial code CUDA parallel programming Basic idea of parallel Parallel detailed design Step 1: apply for CPU and GPU memory space and initialize and copy data. Step 2: design bodyForce function Step 3: design integrate_position function Optimization ideas Optimization 1 - BLOCK_STEP introduction and ...

Posted on Mon, 08 Nov 2021 11:48:14 -0500 by evan18h

Front end performance optimization classic: javascript anti shake throttling

​ Hello, I'm Lanfeng in the front end, a program yuan in a second tier city. Today, I mainly share with you some performance optimization of the front end, js anti shake throttling, which is a common performance optimization scheme of the project and a common problem in the interview. I hope the following articles are helpful to you. We ...

Posted on Wed, 03 Nov 2021 22:13:58 -0400 by mark s

Theory and test of oracle materialized view

Theory and test of oracle materialized view 1. Materialized view (1) Basic concepts of oracle materialized view Materialized views first need to create materialized view logs, oracle Create a materialized view log table based on the materialized view log created by the user. The name of the materialized view log table is mlog$_Followed by t ...

Posted on Thu, 21 Oct 2021 00:28:17 -0400 by theflea912

Oracle EBS optimization has been carried out this year, causing skull pain

It has been engaged in performance optimization for more than 10 years, including OLTP system, OLAP system, Oracle,MYSQL,PG,Greenplum,Oceanbase,hive, Dameng and other database optimization projects have done too much... Only EBS system has not been optimized separately, which has always been a pity. Although I taught several EBS DBA apprentices ...

Posted on Wed, 20 Oct 2021 14:02:30 -0400 by cirma

C + + performance optimization notes - 7 - Optimization in the compiler - 1 - how the compiler optimizes code

How does the compiler optimize Modern compilers can make many changes to the code to improve performance. It is useful for developers to understand what the compiler can and cannot do. The following sections describe some compiler optimizations that developers need to know. Function inlining The compiler can replace the original functio ...

Posted on Fri, 10 Sep 2021 21:43:39 -0400 by perry789