I'm yanhaijing, I built jsmini
《现代JavaScript库开发:原理、技术与实战》
《React状态管理与同构实战》
yanhaijing / data.js Goto Github PK
View Code? Open in Web Editor NEWdata.js 是带有消息通知的数据中心,我称其为会说话的数据。旨在让编程变得简单,世界变得美好。
License: MIT License
data.js 是带有消息通知的数据中心,我称其为会说话的数据。旨在让编程变得简单,世界变得美好。
License: MIT License
pm2 起多个线程,用这个能共享数据吗?
set(a.b.c, {d: 123}) 会派发 a.b.c.d 但是 不会派发 a.b
如题,有没有测试过,在Nodej里将Data.js用来做缓存,缓存的数据量有多大?会不会memory leak?另外,还可以多线程访问不?
console.log(Object.keys([1, 2, 3]));
Data.set('a', [1, 3, 3]);
console.log(Object.keys(Data.get('a')));
上面两段代码,如果Array.prototype上有可枚举属性的话,返回的值,并不一样
我看那个测试能到5亿ops/sec 这个是不是有点高得离谱了?盼请释疑
在data.js中,存取数据都是需要经过深复制的,效率在某些情况下的确会存在一些问题。而结合immutable的概念,存取数据就不需要深复制,而是直接复制引用即可。
也许可以考虑以插件的形式,写一个跟immutable.js组合使用的版本?
var d = new Data();
d.set({time: (new Date).getTime()});
console.log(d.get(''));
https://github.com/yanhaijing/data.js/blob/master/data.js#L130-L133 这个是Feature?!我以为如果是对象的话应该是按照对象的键值对给存储进去呢。
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.