{"id":63803,"library":"pi-atom","title":"Pi Atom","description":"The global thread safe atomic string pool reduces the memory occupation of the same string and is also used for HashMap keys","status":"active","version":"0.6.1","language":"rust","source_language":null,"source_url":"https://github.com/GaiaWorld/pi_atom","tags":["string-pool","intern","atom","memory","hashmap"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\npi_atom = \"0.6.1\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add pi_atom","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Atom","correct":"use pi_atom::Atom;"}],"quickstart":{"code":"use pi_atom::Atom;\n\nlet atom = Atom::new(\"hello\");\nprintln!(\"Atom value: {}\", atom.as_str());","lang":"rust","description":"Creates an interned string atom from \"hello\"."},"warnings":[],"env_vars":null,"search_vec":"'also':20 'atom':2,7,29 'global':4 'hashmap':23,31 'intern':28 'key':24 'memori':12,30 'occup':13 'pi':1 'pool':9,27 'reduc':10 'safe':6 'string':8,17,26 'string-pool':25 'thread':5 'use':21","created_at":"2026-06-17T16:48:05.111135+00:00","updated_at":"2026-06-17T16:48:05.111135+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/GaiaWorld/pi_atom","github":"https://github.com/GaiaWorld/pi_atom","docs":"https://docs.rs/pi_atom/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}