playground

command module
v0.0.0-...-8736fb8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2017 License: MIT Imports: 5 Imported by: 0

README

playground

Go Report Card Build Status
MSC 内部项目使用的代码运行沙箱

主要功能

Python, C, Golang 代码运行 代码分享功能

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
lang
c
使用一个简单实现的 Bloom Filter 实现了分享ID 生成器 ID 生成的过程: 1.随机生成 3 个 byte 2.将随 bytes 进行 hash 产生 Bloom Filter 所需要的 hash 数目 3.由 Bloom Filter 进行过滤,如不存在则插入过滤器,否则返回 ErrKeyExist 4.将随机 bytes 转换成字符串 ID 返回 注意: 因为采取了随机字符串,当 ID 分配数接近 1000W 时性能会开始剧烈恶化。
使用一个简单实现的 Bloom Filter 实现了分享ID 生成器 ID 生成的过程: 1.随机生成 3 个 byte 2.将随 bytes 进行 hash 产生 Bloom Filter 所需要的 hash 数目 3.由 Bloom Filter 进行过滤,如不存在则插入过滤器,否则返回 ErrKeyExist 4.将随机 bytes 转换成字符串 ID 返回 注意: 因为采取了随机字符串,当 ID 分配数接近 1000W 时性能会开始剧烈恶化。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL