clickhouse集群搭建https://clickhouse.tech/
单机安装1、从源安装https://clickhouse.tech/docs/zh/getting-started/install/sudo yum install yum-utilssudo rpm –import https://mirrors.tuna.tsinghua.edu.cn/clickhouse/CLICKHOUSE-KEY.GPGsudo yum-config-manager –add-repo https://mirrors.tuna.tsinghua.edu.cn/clickhouse/r...
动作
时间
换算
L1 缓存访问
0.5 ns
0.5ns
分支预测错误
5 ns
5ns
L2 缓存访问
7 ns
7 ns
互斥锁/解锁
25 ns
25 ns
内存访问
100ns
100ns
使用 Zippy压缩 1KiB
3,000 ns
3 µs
通过 1 Gbps 网络发送 2KiB
20,000 ns
20 µs
SSD 随机读取
150,000 ns
150 µs
内存中连续读取 1 MB
250,000 ns
250 µs
同一个数据中心的来回
500,000 ns
0.5 ms
从 SSD 上连续读取 1 MB*...
HBase原理与实践读书笔记一、概述google三论文1、GFS:Google File System (数据分布式存储)2、MapReduce:Simplefied Data Processing on Large Clusters 数据的分析计算3、BigTale:A Distributed Storage System for Structured Data 高效读写
HBase是在HDFS之上的分布式KV数据库系统HBase数据模型:1{"rowkey11","技术类书籍","HBase原理与实践",&...
由于mac上 brew install opencv是不带viz模块的,所以需要源码编译
1、下载opencv和vtk源码123opencv:https://opencv.org/releases.htmlvtk:https://www.vtk.org/download/
当然也可以通过git clone
123456789101112131415161718git clone https://gitlab.kitware.com/vtk/vtk.git VTKcd VTKgit checkout vX.X.Xgit clone https://github.com/opencv/op...
只在Android设备上测试过
介绍:https://en.wikipedia.org/wiki/Iptables用法:https://linux.die.net/man/8/iptables
注意: 由于是修改配置文件,所以输入命令后要等一会才会生效黑名单 禁止访问带百度关键字的链接123456789101112iptables -P INPUT ACCEPTiptables -P FORWARD ACCEPTiptables -P OUTPUT ACCEPTiptables -Fiptables -Xiptables -t nat -Fiptables -t nat -Xipta...
使用gyp扩展编译工具编写node的c/c++插件(node自身源码就是使用GYP编译的)node可以直接调用二进制的代码
一、安装环境 1npm install -g node-gyp
2、python v2.7 (不支持v3.x.x)
3、安装xcode 命令行工具 12命令行安装: xcode-select --installxcode里安装: xcode -> Preferences -> Downloads
二、创建工程 1、创建binding.gyp文件
2、在nodejs工程里运行 1node-gyp configure
会在build/...
WebAssembly多线程demo一、准备工作WebAssembly第一个demochrome://flags WebAssembly threads support 选项要打开 enable
二、好了,开始写demo功能:js传递给c 一个计算次数,一个启动的线程数, 打印相同计算次数下,单线程和多线程的计算时间
1、新建一个目录,创建两个文件index.html和main.cpp
2、main.cpp内容
12345678910111213141516171819202122232425262728293031323334353637383940414243444...
一、准备工作1、安装xcode command tools(已经安装请略过)1xcode-select --install
2、安装python(已经安装请略过)1brew install python
3、安装git(已经安装请略过)1brew install git
4、安装cmake(已经安装请略过)
1brew install cmake
二、安装编译工具(从c++编译到wasm和asm)1234567891011121314151617# Get the emsdk repogit clone https://github.com/emscripten-core/emsdk...
一、flutter是google推出的一个跨平台ui框架1、支持ios和android的release版本已经出了官方主页:https://flutter.dev/github:https://github.com/flutter/flutter
2、 mac,linux,windows,Fuchsia操作系统的桌面版也有一个项目支持目前还在测试阶段github:https://github.com/google/flutter-desktop-embedding
3、 对于web,google也推出了一个实验性项目:Hummingbird 目前还没有开源
二、flutter为移动平台上...