Skip to content

Commit 4dd7f45

Browse files
authored
Updating simdjson to 4.2.2 (#103)
* Updating simdjson to 4.0.6 * add test for unknown type * fix error in compiling using luarocks make * format code * Update simdjson upstream files from 4.0.6 to 4.0.7 * Update simdjson to v4.2.2
1 parent a5de078 commit 4dd7f45

File tree

8 files changed

+60212
-26860
lines changed

8 files changed

+60212
-26860
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LDFLAGS = $(LIBFLAG)
55
LDLIBS = -lpthread
66

77
ifdef LUA_LIBDIR
8-
LDLIBS += $(LUA_LIBDIR)/$(LUALIB)
8+
LDLIBS += $(LUA_LIBDIR)
99
endif
1010

1111
ifeq ($(OS),Windows_NT)
@@ -38,4 +38,4 @@ clean:
3838
rm -f *.$(LIBEXT) src/*.{o,d}
3939

4040
install: $(TARGET)
41-
cp $(TARGET) $(INST_LIBDIR)
41+
cp $(TARGET) $(INST_LIBDIR)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
A basic Lua binding to [simdjson](https://simdjson.org). The simdjson library is an incredibly fast JSON parser that uses SIMD instructions and fancy algorithms to parse JSON very quickly. It's been tested with LuaJIT 2.0/2.1 and Lua 5.1, 5.2, 5.3, and 5.4 on linux/osx/windows. It has a general parsing mode and a lazy mode that uses a JSON pointer.
55

6-
Current simdjson version: 3.12.3
6+
Current simdjson version: 4.2.2
77

88
## Installation
99
If all the requirements are met, lua-simdjson can be install via luarocks with:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ -Inf }
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package="lua-simdjson"
2-
version="0.0.7-1"
2+
version="0.0.8-1"
33
source = {
44
url = "git://github.com/FourierTransformer/lua-simdjson",
5-
tag = "0.0.7"
5+
tag = "0.0.8"
66
}
77
description = {
88
summary = "This is a simple Lua binding for simdjson",

spec/compile_spec.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ local invalid_files = {
112112
"nil_token.json",
113113
"nil_token_scalar.json",
114114
"nully_token.json",
115-
"nully_token_scalar.json"
115+
"nully_token_scalar.json",
116+
"unknown_type.json"
116117
}
117118

118119
describe("Make sure invalid files are not accepted", function()

0 commit comments

Comments
 (0)