Чтобы окончательно подчинить человечество нужно интегрировать человека с машиной. Так что нужно, имхо, опасаться интегрируемых в человека компонентов. Сегодня часы могут заменить банковскую карту, завтра тот же маленький чип из часов предложат внедрить в руку с крутой рекламой в зомбоящике. А далее это может стать общепринятым или обязательным и хорошим поводом внедрить какой-нибудь бакдор в человека.
В документации написано, что это отрицательно влияет на производительность.
Полный текст из документации mongoose:
«When your application starts up, Mongoose automatically calls ensureIndex for each defined index in your schema. Mongoose will call ensureIndex for each index sequentially, and emit an 'index' event on the model when all the ensureIndex calls succeeded or when there was an error. While nice for development, it is recommended this behavior be disabled in production since index creation can cause a significant performance impact. Disable the behavior by setting the autoIndex option of your schema to false.»
'use strict';
var pattern = new Buffer([0xF0, 0x9F, 0x92, 0x95]);
var data = new Buffer(8000);
for (var i = 0; i < 8000; i += 4) {
pattern.copy(data, i, 0, 4);
}
data.slice(0, 7833).toString();
На node.js без патча пишет «Segmentation fault (core dumped)» и завершает процесс.
П.С. ИИ меня заминусует.
Полный текст из документации mongoose:
«When your application starts up, Mongoose automatically calls ensureIndex for each defined index in your schema. Mongoose will call ensureIndex for each index sequentially, and emit an 'index' event on the model when all the ensureIndex calls succeeded or when there was an error. While nice for development, it is recommended this behavior be disabled in production since index creation can cause a significant performance impact. Disable the behavior by setting the autoIndex option of your schema to false.»
Источник: mongoosejs.com/docs/guide.html
На node.js без патча пишет «Segmentation fault (core dumped)» и завершает процесс.
Сам рапорт: github.com/joyent/node/issues/25583