string_store

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

  1. Fork it (https://github.com/your-github-user/string_store/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

string_store

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 1
  • about 6 years ago
  • July 25, 2018
License

MIT License

Links
Synced at

Thu, 07 Nov 2024 21:57:45 GMT

Languages