activegraph
https://github.com/neo4jrb/activegraph
Ruby
An active model wrapper for the Neo4j Graph Database for Ruby.
Neo4j::Shared::DeclaredProperties#attributes_string_map
During object wrapping, a props hash is built with string keys but Neo4j-core provides symbols. Rather than a `to_s` or `symbolize_keys` during every load, we build a map of symbol-to-string to speed up the process. This increases memory used by the gem but reduces object allocation and GC, so it is faster in practice.
Edit
git clone [email protected]:neo4jrb/activegraph.git
cd activegraph
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Neo4j--Shared--DeclaredProperties-attributes_string_map-for-pr
# Commit to gitgit add git commit -m "better docs for Neo4j::Shared::DeclaredProperties#attributes_string_map"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Neo4j--Shared--DeclaredProperties-attributes_string_map-for-pr
hub pull-request
# Celebrate!