Analysis of quicklist source code of Redis

Analysis of quicklist source code of Redis 1, Introduction to quicklist Redis list is a simple list of strings, sorted by insertion order. You can add an element to the head (left) or tail (right) of the list. A list can contain up to 232 - 1 elements (4294967295, more than 4 billion elements per list). The internal data structure that its unde ...

Posted by furma on Sun, 19 Apr 2020 15:12:17 +0200

java nio message half package and sticky package solution

java nio message half package and sticky package solution Background of problemNIO is buffer oriented, not stream oriented. We all know that since it's a buffer, it must have a fixed size. In this way, there are usually two problems: Message packet sticking: when the buffer is large enough, multiple messages may be read into the buffer from the ...

Posted by unklematt on Sun, 19 Apr 2020 14:59:08 +0200

ziplist source code analysis of Redis

ziplist source code analysis of Redis 1, ziplist introduction From the previous analysis, we know that ziplist (compressed list) is used for the underlying storage of quicklist. Since the compressed list itself has many contents, we reopened this article. Before the official source code, we should first look at the characteristics of ziplist: ...

Posted by gazolinia on Sun, 19 Apr 2020 14:58:37 +0200

Qt write map comprehensive application 15 - add delete clear reset point

I. Preface In the related projects of map application, some equipment points are identified on the map, and the function of point interaction is most used. Therefore, a set of mechanism is needed to dynamically add, delete, clear and reset. Reset means to reset the longitude and latitude of all points in the map. In fact, it means to first clea ...

Posted by dmb on Sat, 18 Apr 2020 03:57:55 +0200

I developed a 2D LiDAR SLAM using MATLAB

0 Introduction You have just started learning SLAM for nearly a month, but you don't know much about the theoretical derivation. So you have developed a simple demo of 2D LiDAR SLAM on matlab to understand the complete process of SLAM. (1) Data source: 2D laser SLAM data from Deutsches Museum, Germany, linked as follows: Public Data - Cartog ...

Posted by ohenewa on Fri, 17 Apr 2020 19:23:39 +0200

Getting started with Go Mysql and Redis

Mysql and Redis operations Mysql development Install mysql and create test library Create table mysql> CREATE TABLE `user` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(20) DEFAULT '', `age` int(11) DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; mysql> insert into user (name,age)va ...

Posted by programguru on Sat, 11 Apr 2020 16:17:34 +0200

Five new features of jdk8 Stream API

Introduction The Java 8 API adds a new abstraction called streaming Stream, which allows you to process data in a declarative way. Stream provides a high-level abstraction of Java set operations and expressions in an intuitive way similar to querying data from a database using SQL statements. Stream API can greatly improve the productivity of ...

Posted by phpnewbiy on Wed, 08 Apr 2020 09:26:34 +0200

Flannel, CNI network plug-in of kubernetes

Operation and maintenance technology exchange group: 926402931, welcome to exchange. Catalog 1. Cluster architecture 1.1. Download software, decompress, and make soft link 1.2. Create directory 1.3. Copy certificate documents 1.4. Create configuration 1.5. Create startup script 1.6. Authorize and create log directory 1.7. Create supervisor c ...

Posted by frymaster on Mon, 06 Apr 2020 16:33:17 +0200

Drag,drag,drag! Pull out the Bili Bili side navigation component

I. Preface This article mainly talks about the side navigation and drag components of bleblebleblebler in a macro form, which is very suitable for you who are learning VUE gradually. A proper imitation development project is a necessary skill for front-end learning. Most people know that the interview needs to have their own works, and th ...

Posted by brauchi on Mon, 06 Apr 2020 10:11:53 +0200

python advanced (4) - text and byte sequence (coding problem)

Main content of this paper character byte Structure and memory view Conversion between characters and bytes -- codec BOM ghost character Continue tomorrow...   python advanced - Directory The code in this article is placed on github: https://github.com/ampeeg/cnblogs/tree/master/python advanced   character ''' Character encoding is a pro ...

Posted by misslilbit02 on Mon, 06 Apr 2020 05:04:58 +0200