-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added likely/unlikely to a bunch of if/else statements. * Swapped std::copy_n for std::memcpy in a few places. * Moved a couple masks for the Neon functions out into global scope. * Replaced jsonifier_internal::const_iterator with jsonifier_internal::iterator. * Moved the vector of prettifier states out of the function scope to the prettifier classes' scope. * Separated jsonifier_internal::string_literal out into its own header. * Moved a bunch of string-utility functions out into the derailleur class. * Replaced the join function with combineLiterals. * Modified the logic of the parse_impl classes. * Implemented a compile-time jump table to improve parsing performance significantly. * Replaced the float/double parsing/serializing methods with more conformant version. * Modified the serializing code to no longer rely on hash-maps for serializing member. * Marked a bunch of additional functions as noexcept. * Added an ALWAYS_INLINE macro in addition to the INLINE one. * Modified the CPU-architecture selection method.
- Loading branch information
1 parent
09b36a8
commit abbaaca
Showing
328 changed files
with
1,096,697 additions
and
1,344,166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Build-and-Test-CLANG-MacOS | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
|
||
jobs: | ||
Build: | ||
runs-on: macos-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
build_type: [Debug, Release] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Xcode | ||
run: | | ||
sudo xcode-select -s /Applications/Xcode_15.4.app/Contents/Developer | ||
xcodebuild -version | ||
- name: Configure CMake | ||
run: cmake -B build -G Xcode -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DJSONIFIER_TEST="TRUE" | ||
|
||
- name: Build the Test | ||
working-directory: ./Build | ||
run: | | ||
cmake --build . --config=${{matrix.build_type}} | ||
- name: Install the Test | ||
working-directory: ./Build | ||
run: | | ||
sudo cmake --install . --config=${{matrix.build_type}} | ||
- name: Run the Test | ||
working-directory: /usr/local/bin/ | ||
run: | | ||
sudo chmod +x ./Json-Performance | ||
./Json-Performance | ||
continue-on-error: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Build-and-Test-CLANG-Ubuntu | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
|
||
jobs: | ||
Build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
build_type: [Debug, Release] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install the latest Clang compiler. | ||
working-directory: Tests | ||
run: | | ||
sudo apt update && sudo apt upgrade | ||
wget https://apt.llvm.org/llvm.sh | ||
chmod u+x llvm.sh | ||
sudo ./llvm.sh 20 | ||
- name: Install Seaborn | ||
run: | | ||
pip install seaborn | ||
- name: Configure CMake | ||
working-directory: ./ | ||
run: | | ||
cmake -S . -B ./Build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_CXX_COMPILER=/usr/bin/clang++-20 -DJSONIFIER_TEST="TRUE" | ||
- name: Build the Test | ||
working-directory: ./Build | ||
run: | | ||
cmake --build . --config=${{matrix.build_type}} -v | ||
- name: Install the Test | ||
working-directory: ./Build | ||
run: | | ||
sudo cmake --install . --config=${{matrix.build_type}} | ||
- name: Run the Test | ||
working-directory: ./Build/Tests | ||
run: | | ||
./Json-Performance | ||
continue-on-error: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Update-Loc-Repo | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
|
||
jobs: | ||
Build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
build_type: [Release] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: true | ||
|
||
- name: Clone the repo. | ||
run: | | ||
sudo git config --global user.email "[email protected]" | ||
sudo git config --global user.name "realtimechris" | ||
sudo git clone https://realtimechris:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/realtimechris/Jsonifier-Code-Only --depth=1 | ||
- name: Copy the files over. | ||
run: | | ||
sudo cp -r ./Include/* ./Jsonifier-Code-Only/ | ||
- name: Commit and push the changes to the repo. | ||
working-directory: ./Jsonifier-Code-Only | ||
run: | | ||
sudo git checkout --orphan newBranch | ||
sudo git add . | ||
sudo git commit -m "Updates." | ||
sudo git branch -D main | ||
sudo git branch -m main | ||
sudo git push origin main -f | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
project(FeatureDetection) | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
# Add your source file(s) | ||
add_executable(feature_detector main.cpp) |
Oops, something went wrong.