HomeFreeBSD

devel/simdjson: update to 0.5.0

Description

devel/simdjson: update to 0.5.0

From ChangeLog: https://github.com/simdjson/simdjson/releases/tag/v0.5.0

Performance

  • Faster and simpler UTF-8 validation with the lookup4 algorithm
  • We improved the performance of simdjson under Visual Studio by about 25%. Users will still get better performance with clang-cl (+30%) but the gap has been reduced.

Code usability

  • In parse_many, when parsing streams of JSON documetns, we give to the users runtime control as to whether threads are used (via the parser.threaded attribute).
  • Prefixed public macros to avoid name clashes with other libraries.
  • Better documentation regarding package managers (brew, MSYS2, conan, apt, vcpkg, FreeBSD package manager, etc.).
  • Better documentation regarding CMake usage.

Standards

  • We improved standard compliance with respect to both the JSON RFC 8259 and JSON Pointer RFC 6901. We added the at_pointer method to nodes for standard-compliant JSON Pointer queries. The legacy at(std::string_view) method remains but is deprecated since it is not standard-compliant as per RFC 6901.
  • We removed computed GOTOs without sacrificing performance thus improving the C++ standard compliance (since computed GOTOs are compiler-specific extensions).
  • Better support for C++20

PR: 248775
Submitted by: olevole@olevole.ru (maintainer)

Details

Provenance
fernapeAuthored on
Parents
rP545545: sysutils/yadm: Backport files perms check patch
Branches
Unknown
Tags
Unknown