Simulation environment preparation
Frequent thread switching
Performance optimization has always been the focus of back-end service optimization, but online performance failure problems do not often occur, or due to business products, there is n ...
Posted by tblade on Thu, 10 Mar 2022 01:45:37 +0100
After a year, I found myself slack and didn't blog much. I also wanted to write the problems encountered in the project, but I didn't put them into action. Recently, I reconstructed some bad code of the project. When I'm free, it's also time to share the problems encountered in the project with you.Well, after nagging, today we wi ...
Posted by jack_wetson on Wed, 09 Mar 2022 15:48:04 +0100
free is to view memory usage, including physical memory, swap memory, and kernel buffer memory.
free -h -s 3 means to output the memory every three seconds. The command is as follows
[1014154@cc69dd4c5-4tdb5 ~]$ free
total used free shared buff/cache available
Mem: 119623656 ...
Accelerate the application expansion across GPUs within one computing node or across multiple GPUs.
CUDA provides a large number of functions to realize multi GPU Programming, including: managing multiple devices in one or more processes, using unified virtual addressing to directly access the memory of other devices, GPUDirect, and overlappin ...
Posted by bookbuyer2000 on Fri, 04 Mar 2022 06:39:28 +0100
1, new/delete operator
C + + implements global new/new  and delete/delete  to improve the access and management of dynamic memory. operator new can be a member function or global function of a class. Generally, the C + + runtime provides default global new/new  and delete/delete  implementations. Applications can also use custom implem ...
Posted by KRAK_JOE on Mon, 21 Feb 2022 03:42:24 +0100
Msgpack / Jason performance data comparison
MsgPack is an efficient binary serialization format. Like Jason, it can exchange data between languages and is used to serialize and store data. The advantage is that when the data scale is large, it is more efficient and occupies less resources than Jason; The disadvantage is that it is not easy to ...
Posted by tpl41803 on Fri, 18 Feb 2022 05:54:19 +0100
Throttling definitionSome frequently operated events will affect performance. "Throttling" is used to control the response interval. When the event is triggered, the corresponding function will not be triggered immediately, but will execute the response function according to a specific time interval every time the response interval is ...
Posted by stuartbates on Sat, 12 Feb 2022 14:23:31 +0100
Performance optimization cases
1. Dichotomy search
Ordered array lookup
What is an ordered array?
If the values in an array are arranged in a certain order, we call it an ordered array
For example: array [2, 8, 15, 24, 66, 88, 100]
Now I want to complete a function to find out whether a number exists in the array. For example:
Posted by Gulsaes on Fri, 11 Feb 2022 13:07:29 +0100
Why preload the View? Improve the startup speed of Activity and avoid parsing xml files every time.
My idea is to preload and cache the layout of setContentView for each Activity. The next time you open the Activity again, you can reuse the previously loaded.
Then there is a problem. We all know that each View will hold a reference to a Conte ...
Posted by likethegoddess on Fri, 28 Jan 2022 10:27:55 +0100