free() for an allocated Buffer?

0 visningar
Hoppa till det första olästa meddelandet

Bryan Berry

oläst,
3 maj 2010 08:33:142010-05-03
till nodejs
What is the best way to delete an allocated buffer?

node> var buf = new Buffer(1234);
node> delete buf

delete seems to reduce the size of the Heap Used but there is speculation that it also puts v8 into the "slow case"

tks
Svara alla
Svara författaren
Vidarebefordra
0 nya meddelanden