packbytes's People
packbytes's Issues
Typescript?
Could be a great idea to have it rewrite in TS to have something like this project https://github.com/voltrevo/monorepo/tree/master/projects/typed-bytes
packBytes is really great but we can't know the TS type for the final object shape
Add binary schema format
Schema can exist as a JavaScript object, and it can be serialized to Json string, this issue is to add optional binary format so schema can be sent as binary blob and take up less space than Json string
Use pre-allocated buffers, remove getDataSize()
As discussed here uNetworking/uWebSockets.js#894 it's more efficient to pre-allocate buffers and slice after encode vs calculating exact size before encode which uses more cpu cycles. Removing getDataSize() function will reduce complexity and improve speed
Add genSchema(data)
Add optional genSchema(data) function to auto-generate a schema for a specific dataset. Because it only applies to that set it can optimize to make the smallest possible encoding for that set. Useful to quickly generate schema without manual design, or for large datasets where schema size is small relative to size of data, or for changing or unknown datasets. Not useful for when schema can be designed in advance so schema is not needed to be sent with each dataset, when schema size is large relative to dataset
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.