Comments (2)
With #40 it seems fine:
2020-08-21 17:06:08: Heap: 2.88 / 5.5 MB
2020-08-21 17:06:10: Heap: 3.38 / 5.75 MB
2020-08-21 17:06:12: Heap: 3.41 / 5.75 MB
2020-08-21 17:06:14: Heap: 3.44 / 5.75 MB
2020-08-21 17:06:16: Heap: 2.43 / 4.5 MB
2020-08-21 17:06:18: Heap: 2.46 / 4.5 MB
2020-08-21 17:06:20: Heap: 2.49 / 4.5 MB
2020-08-21 17:06:22: Heap: 2.51 / 4.5 MB
2020-08-21 17:06:24: Heap: 2.54 / 4.5 MB
from tink_state.
I guess the real cause is ObservableMap#get
:
class Main {
static function main() {
final map = new tink.state.ObservableMap<Int, String>([]);
new haxe.Timer(20).run = () -> {
for(i in 0...100) map.get(i);
}
// monitor memory
new haxe.Timer(2000).run = function() {
var memory = js.Node.process.memoryUsage();
inline function format(v:Float)
return Std.int(v / 1024 / 1024 * 100) / 100;
Sys.println('${Date.now().toString()}: Heap: ${format(memory.heapUsed)} / ${format(memory.heapTotal)} MB');
};
}
}
Leaked 200MB in 10s
2020-08-13 17:11:46: Heap: 43.81 / 65.6 MB
2020-08-13 17:11:48: Heap: 87.18 / 116.08 MB
2020-08-13 17:11:50: Heap: 130.75 / 150.85 MB
2020-08-13 17:11:52: Heap: 174.42 / 201.6 MB
2020-08-13 17:11:54: Heap: 220.52 / 240.51 MB
2020-08-13 17:11:56: Heap: 261.82 / 285.51 MB
from tink_state.
Related Issues (20)
- Granular observation in Map/Array HOT 2
- Change is not remembered somehow HOT 1
- ObservableMap.observe should return ObservableMapView HOT 1
- What API replaces observableLength and observableValues? HOT 3
- Suspend async computation when observable goes out of use.
- Add `ObservableObject.isConstant` HOT 1
- ObservableArray exposes internal methods due to `@:forward`
- Issue with SignalObservable(?)
- LinkObject import is missing in the Binding.hx HOT 4
- Add js-compat flag.
- Reduce allocations.
- Async Observable.
- Allow swapping computation in auto observable.
- Obervable.ofPromise does not fire binding? HOT 3
- Exception catching mode HOT 1
- early break in AutoObservable s.hasChanged check can trigger multiple recalculations HOT 2
- async auto-observable value not being updated properly when not bound (only on `v1` branch) HOT 1
- Add State.update HOT 2
- mapAsync broken?
- Sometimes direct bindings run before all observables are invalidated.
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.
from tink_state.