Ben Chuanlong Du's Blog

It is never too late to learn.

Latency Numbers Programmers Should Know

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Latency Operations
<=1ns
  • accessing CPU registers
  • CPU clock cycle
  • L1 cache
1-10ns
  • L2 cache
  • branch mispredict
10-100ns
  • L3 cache
  • mutex lock/unlock
  • main memory referencing
100-1000ns
  • trapping of system call
  • md5 …

Popular Databases

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

The YouTube video How to Choose The Right Database has great advices on how to choose the right databases.

Types of Databases

  • relational
  • non-relational
  • key value database
    • document database
    • wide column …

The NeoVim Plugin for Visual Studio Code

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

https://github.com/asvetliakov/vscode-neovim

Installation

  1. Install NeoVim 0.5+ using icon.

    icon nvim -ic --ppa
    
  2. Install the NeoVim plugin from the extension market in VSCode or Code Server.

  3. Set the …