@nxtedition/rocksdb 12.0.11 → 12.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/binding.cc CHANGED
@@ -1056,7 +1056,7 @@ NAPI_METHOD(db_get_many_sync) {
1056
1056
  NAPI_STATUS_THROWS(napi_get_null(env, &row));
1057
1057
  } else {
1058
1058
  ROCKS_STATUS_THROWS_NAPI(statuses[n]);
1059
- if (unsafe && values[n].size() > 32) {
1059
+ if (unsafe) {
1060
1060
  NAPI_STATUS_THROWS(ConvertUnsafe(env, std::move(values[n]), valueEncoding, row));
1061
1061
  } else {
1062
1062
  NAPI_STATUS_THROWS(Convert(env, std::move(values[n]), valueEncoding, row));
@@ -1143,7 +1143,7 @@ NAPI_METHOD(db_get_many) {
1143
1143
  NAPI_STATUS_RETURN(napi_get_null(env, &row));
1144
1144
  } else {
1145
1145
  ROCKS_STATUS_RETURN_NAPI(state.statuses[n]);
1146
- if (unsafe && state.values[n].size() > 32) {
1146
+ if (unsafe) {
1147
1147
  NAPI_STATUS_RETURN(ConvertUnsafe(env, std::move(state.values[n]), valueEncoding, row));
1148
1148
  } else {
1149
1149
  NAPI_STATUS_RETURN(Convert(env, std::move(state.values[n]), valueEncoding, row));
package/binding.gyp CHANGED
@@ -8,11 +8,11 @@
8
8
  [
9
9
  "OS == 'linux'",
10
10
  {
11
- "cflags": ["-march=znver1"],
12
11
  "include_dirs": [
13
12
  "/usr/lib/x86_64-linux-gnu/include",
14
13
  "/usr/lib/include",
15
14
  ],
15
+ "cflags": ["-march=znver1"],
16
16
  "ccflags": ["-flto", '-march=znver1'],
17
17
  "cflags!": ["-fno-exceptions"],
18
18
  "cflags_cc!": ["-fno-exceptions"],
@@ -111,15 +111,8 @@
111
111
  "/usr/lib/include",
112
112
  # "/usr/local/Cellar/jemalloc/5.3.0/include"
113
113
  ],
114
- "cflags": [
115
- "-msse4.2",
116
- "-mpclmul",
117
- "-mavx",
118
- "-mavx2",
119
- "-mbmi",
120
- "-mlzcnt"
121
- ],
122
- "ccflags": ["-flto"],
114
+ "cflags": ["-march=znver1"],
115
+ "ccflags": ["-flto", "-march=znver1"],
123
116
  "cflags!": ["-fno-exceptions"],
124
117
  "cflags_cc!": ["-fno-exceptions"],
125
118
  "ldflags": ["-flto", "-fuse-linker-plugin"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/rocksdb",
3
- "version": "12.0.11",
3
+ "version": "12.0.12",
4
4
  "description": "A low-level Node.js RocksDB binding",
5
5
  "license": "MIT",
6
6
  "main": "index.js",