Skip to content

Commit 09c0d85

Browse files
authored
Async indexing (#10)
* async indexing | small refactoring * async indexing optional * performance improvement * fix security in async index
1 parent 3574fad commit 09c0d85

19 files changed

+516
-307
lines changed

binding.gyp

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
"targets": [{
33
"target_name": "itemsjs_addon",
44
"cflags!": [ "-fno-exceptions" ],
5-
"cflags_cc!": ["-O3", "-fno-exceptions", "-std=gnu++0x", "-std=gnu++1y"],
6-
"cflags_cc+": ["-O3", "-std=c++17"],
5+
"cflags_cc!": ["-pthread", "-O3", "-fno-exceptions", "-std=gnu++0x", "-std=gnu++1y"],
6+
"cflags_cc+": ["-pthread", "-O3", "-std=c++17"],
77
"sources": [
88
"cpp/main.cpp",
99
"cpp/itemsjs.cpp",
1010
"cpp/simdjson.cpp"
1111
],
1212
'include_dirs': [
13-
"<!@(node -p \"require('node-addon-api').include\")"
13+
"<!@(node -p \"require('node-addon-api').include\")",
14+
"<!@(node -p \"require('napi-thread-safe-callback').include\")"
1415
],
1516
'libraries': [
1617
"<!(node -p \"require('./src/binding').liblmdb()\")"
@@ -28,7 +29,7 @@
2829
"<!(node -p \"require('node-addon-api').gyp\")"
2930

3031
],
31-
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ],
32+
'defines': [],
3233

3334
'conditions': [
3435
['OS=="linux"', {

0 commit comments

Comments
 (0)