Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

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. It has a general parsing mode and a lazy mode that uses a JSON pointer.

Current simdjson version: 0.5.0
Current simdjson version: 3.2.3

## Installation
If all the requirements are met, lua-simdjson can be install via luarocks with:
Expand Down
7 changes: 4 additions & 3 deletions src/luasimdjson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,10 @@ static int parse_file(lua_State *L)

static int active_implementation(lua_State *L)
{
std::string name = simdjson::active_implementation->name();
std::string description = simdjson::active_implementation->description();
std::string implementation_name = name + " (" + description + ")";
const auto& implementation = simdjson::get_active_implementation();
const std::string name = implementation->name();
const std::string description = implementation->description();
const std::string implementation_name = name + " (" + description + ")";

lua_pushlstring(L, implementation_name.data(), implementation_name.size());

Expand Down
Loading