2 रिपॉजिटरी
Serialization techniques that use compile-time code generation to avoid runtime reflection overhead.
Distinct from High-Performance Binary Serialization: None of the candidates cover the specific concept of replacing runtime reflection with compile-time generation for performance.
Explore 2 awesome GitHub repositories matching software engineering & architecture · Reflectionless Serialization. Refine with filters or upvote what's useful.
Moshi is a JSON serialization library and parser for Kotlin and Java. It functions as a reflectionless JSON encoder that converts typed objects to JSON strings and parses JSON data back into language objects. The library distinguishes itself through compile-time adapter generation, which removes the performance overhead associated with runtime reflection. It also provides a polymorphic JSON mapper that uses type identifiers to resolve and instantiate specific subclasses of a common base type. The framework supports custom adapter definitions for specialized type conversion, including nullabi
Uses compile-time adapter generation to eliminate the performance costs associated with runtime reflection.
easyjson Go के लिए एक उच्च-प्रदर्शन JSON सीरियलाइज़र और मेमोरी-अनुकूलित पार्सर है। यह एक रिफ्लेक्शनलेस कोड जनरेटर प्रदान करता है जो डेटा को मार्शल और अनमार्शल करने के लिए स्टैटिक Go मेथड्स बनाता है, जिससे निष्पादन गति में सुधार के लिए रनटाइम रिफ्लेक्शन की आवश्यकता समाप्त हो जाती है। यह लाइब्रेरी कई अनुकूलन रणनीतियों के माध्यम से CPU और मेमोरी ओवरहेड को कम करती है। यह हीप एलोकेशन और गारबेज कलेक्शन के दबाव को कम करने के लिए पुन: प्रयोज्य मेमोरी बफर पूल की एक प्रणाली का उपयोग करती है। इसके अतिरिक्त, यह बार-बार आने वाले मानों को हटाने के लिए स्ट्रिंग इंटरनिंग और नई स्ट्रिंग आवंटित करने के बजाय मौजूदा बफर सेगमेंट की ओर इशारा करने के लिए ज़ीरो-कॉपी स्ट्रिंग रेफरेंसिंग का उपयोग करती है। यह प्रोजेक्ट Go स्ट्रक्ट्स और JSON के बीच डेटा के रूपांतरण को अनुकूलित करने के लिए उच्च-प्रदर्शन JSON प्रोसेसिंग, स्टैटिक कोड जनरेशन और उन्नत मेमोरी प्रबंधन को कवर करता है।
Uses compile-time code generation to avoid runtime reflection overhead during JSON serialization.