Skip to content

Instantly share code, notes, and snippets.

View robsonpeixoto's full-sized avatar

Robson Roberto Souza Peixoto robsonpeixoto

View GitHub Profile
#
# This script is a tool that helps you calculate the benefits in occupied size on disk
# of the ext4 inlinedata new feature of the Linux kernel 3.8.0 see http://www.h-online.com/open/features/What-s-new-in-Linux-3-8-1804240.html
#
# Just run it on your ext4 mountpoints and it will tell give you the trade off for all your files depending on the inode size you # choose.
#
# To get you current inode size you can do :
# $ tune2fs -l /dev/mapper/isw_ddbeejgcgd_Volume03 | grep Inode
# Inode count: 15040512
# Inodes per group: 8192
/**
* b-bit Minwise hashing の Java 実装です。
* <p>
* 参考文献 : <a href="http://research.microsoft.com/pubs/120078/wfc0398-lips.pdf">b-Bit Minwise Hashing</a>
* </p>
*
* @author KOMIYA Atsushi
*/
public class MinHash {
private final int numBits;