ripcordsoftware / libscriptobject Goto Github PK
View Code? Open in Web Editor NEWA C++ 11 library implementing scriptable/serializable objects
License: GNU General Public License v2.0
A C++ 11 library implementing scriptable/serializable objects
License: GNU General Public License v2.0
If a number could fit into the int32 number space then the parser factory should attempt the downcast
std::shared_ptr<> instances require 16 bytes of memory. Switching to boost::intrusive_ptr would reduce this to 8 bytes. Where there are a large number of small objects/arrays the overhead of shared_ptr is high.
Rather than using boost implement as a new counted reference type.
ScriptObjectPtr and ScriptArrayPtr should be created by make_shared<> to avoid seperate object and control block allocations.
The std::unordered_set does not support a lambda implementation of find(). This means the template type must be created to get a key comparison. In the key cache case the type is a shared_ptr which is a relatively expensive object. It is much preferred to compare the field count and the hash without the expense of creating a smart pointer instance.
Support for setString() was added in 6f98352. It would be useful to set the value of other fields in the object. Also consider set for array.
If any array contains a single type then type and offset information may be omitted which is a useful optimization for large arrays.
Object/array to return the sum total of self and children to caller. Both object and array already expose self 'size' but there is no child walk function built in.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.