string_store
Convert String to Hash Value. Using Hash Value to represent String improves performance of String Searching in HashTable.
Installation
Add this to your application's shard.yml
:
dependencies:
string_store:
github: chenkovsky/string_store
Usage
require "string_store"
it "works" do
store = StringStore.new
id = store.get_id "example"
store.to_disk("store.bin")
store = StringStore.from_disk("store.bin")
store.get_id("example").should eq(id)
end
Development
TODO Write development instructions here
Contributing
- Fork it (https://github.com/your-github-user/string_store/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- chenkovsky chenkovsky - creator, maintainer