Repository navigation
Fibonacci Hashing Function in Python Added #7
fapulito
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
jsoncons v1.1.0 Release Notes
Release Date: January 4, 2026
🎉 Overview
jsonconsv1.1.0 introduces Fibonacci Hashing Integration, a powerful multiplicative hashing technique for efficient hash table indexing. This release adds new CLI commands, a comprehensive Fibonacci hashing function, and an educational Jupyter Notebook demonstrating performance benefits. All existing functionality remains fully backward compatible.✨ New Features
1. Fibonacci Hashing Function
A new
fibonacci_hash_to_index()function provides efficient mapping of 64-bit hash values to indices in power-of-2 sized hash tables.Key Benefits:
Usage:
Technical Details:
11400714819323198485(derived from 2^64 / φ, where φ is the golden ratio)ValueErrorfor invalid inputs (non-power-of-2 sizes, zero, or negative values)2. New CLI Commands
process_json_fibFibonacci variant of JSON validation and formatting. Functionally identical to
encode/decodewith consistent command naming patterns.cobol_to_json_fibFibonacci variant of COBOL-to-JSON conversion. Uses the new
parse_cobol_line_fibparser while maintaining identical output to the original command.# Convert COBOL to JSON with Fibonacci variant jsoncons cobol_to_json_fib --layout-file layout.json input.cobol output.json3. Comprehensive Jupyter Notebook Demo
A new
Fibonacci_Hashing_Demo.ipynbnotebook provides hands-on demonstrations of Fibonacci hashing principles:Included Demonstrations:
Running the Notebook:
🔄 Backward Compatibility
✅ All existing commands work unchanged:
encode- Validate and pretty-print JSONdecode- Alias for encodecobol_to_json- Convert COBOL data to JSONNo breaking changes. Existing workflows continue to function identically.
🐛 Bug Fixes
📋 What is Fibonacci Hashing?
Fibonacci hashing is a multiplicative hashing technique that uses the golden ratio to distribute hash values uniformly across power-of-2 sized hash tables. It's particularly effective for:
Why It Matters:
🧪 Testing & Quality
📦 Installation
Or upgrade from a previous version:
🚀 Roadmap to v2.0.0
📝 Documentation
🤝 Contributing
Contributions are welcome! To contribute:
git checkout -b feature/your-feature-name)git push origin feature/your-feature-name)📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
Fibonacci hashing implementation based on established multiplicative hashing techniques using the golden ratio constant. Special thanks to the community for downloading jsoncons in 2025.
📞 Support
For issues, questions, or feature requests, please visit the GitHub repository or open an issue.
Happy hashing! 🎉
This discussion was created from the release Fibonacci Hashing Function in Python Added.
All reactions