fuwaneko / node-protobuf

Google Protocol Buffers wrapper for Node.js [UNMAINTAINED]
180 stars 42 forks source link

Here memory leaks, the process will lead to the collapse of the long-run... #16

Closed wentianle closed 10 years ago

wentianle commented 10 years ago

...ning

test code:

var i = 0;
while(true){
    var buf = pb.Serialize(obj, 'ucloud.UMessage');
    if(!(++i % 10000)){
        console.info(i);
    }
}
fuwaneko commented 10 years ago

So I checked it again and it seems while on Windows it still leaks, on Linux it actually fixes the problem. I suppose a bit of performance lost is okay as long as there are no SEGs and huge memory leakage. Thanks.