javascript - Node.js 在哪里存储缓冲区?

标签 javascript node.js

Node.js documentation on Buffer说:

Raw data is stored in instances of the Buffer class. A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized.

好的,所以缓冲区存储在 V8 堆中,但是...... Node.js 实际将它们存储在哪里?我很难想象它在堆栈上,是吗?

换句话说:究竟是什么

a raw memory allocation outside the V8 heap

究竟是什么意思?

最佳答案

v8 堆区域的外侧。阅读以下链接将对您有所帮助。

https://nodejs.org/api/smalloc.html#smalloc_smalloc

关于javascript - Node.js 在哪里存储缓冲区?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31429697/

相关文章:

javascript - 白色 slider 的当前点

javascript - 在 angular service.ts 中使用谷歌的 api.js

javascript - 在reactjs中控制导航栏中的redux属性

node.js - 使用 Node.js 上传到谷歌云存储

mysql - 选择查询在 Node js 和 Express API 中使用 where 子句抛出错误

node.js - 我是一个完整的新手,如何学习 Node.Js + Express + MongoDB?

javascript - 使用具有功能组件的 Prop 更新组件的状态

javascript - D3 TreeMap - 使用直线而不是对 Angular 线时如何转换链接

javascript - 如果使用 require ('moduleName' 加载模块,原型(prototype)方法在构造函数中不可见)

javascript - 是否可以在不插入新 _id 的情况下创建新新闻? ( Mongoose )