Node.js documentation on Buffer
说:
Raw data is stored in instances of the
Buffer
class. ABuffer
is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. ABuffer
cannot be resized.
好的,所以缓冲区不存储在 V8 堆中,但是...... Node.js 实际将它们存储在哪里?我很难想象它在堆栈上,是吗?
换句话说:究竟是什么
a raw memory allocation outside the V8 heap
究竟是什么意思?
最佳答案
v8 堆区域的外侧。阅读以下链接将对您有所帮助。
关于javascript - Node.js 在哪里存储缓冲区?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31429697/