Skip to content

Commit

Permalink
Jsonifier Release v0.9.95
Browse files Browse the repository at this point in the history
* Added support for Arm-Neon 128-bit SIMD intrinsics.
* Modified some lines to correct cleanliness.
* Updated the raw_json_data class to remove superfluous functions.
* Updated some of the error_codes.
* Modified the parser, validator, serializer, and minifier classes to reduce function call overhead.
* Refactored the usage of ascii_classes to instead utilize the json_structural_type enumeration.
* Modified the CPU-detection script.
* Added a new compare function to accelerate string comparisons.
* Added MSVC, CLANG and GNU macros.
  • Loading branch information
RealTimeChris committed May 3, 2024
1 parent b6b8720 commit d657769
Show file tree
Hide file tree
Showing 95 changed files with 122,318 additions and 47,682 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
custom: ['https://www.paypal.com/donate/?hosted_button_id=Z6RURQ8UCLQHY']
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build-and-Test-GCC-MacOS
name: Build-and-Test-CLANG-MacOS

on:
workflow_dispatch:
push:
branches:
- main
Expand All @@ -13,22 +14,17 @@ jobs:
strategy:
fail-fast: false
matrix:
gcc: [13]
clang: [15]
build_type: [Debug, Release]
std: [20]

steps:
- uses: actions/checkout@v3

- name: Install the latest g++ compiler.
run: |
brew install gcc
- name: Configure CMake
working-directory: ./
run: |
cmake -S . -B ./Build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_CXX_COMPILER=/usr/local/opt/gcc@13/bin/g++-13 -DDEV="TRUE" -DJSONIFIER_TEST=true
cmake -S . -B ./Build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DDEV="TRUE" -DJSONIFIER_TEST=true
- name: Build the Test
working-directory: ./Build
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/CLANG_17-MacOS.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build-and-Test-CLANG-MacOS

on:
workflow_dispatch:
push:
branches:
- main
- dev

jobs:
Build:
runs-on: macos-latest

strategy:
fail-fast: false
matrix:
clang: [17]
build_type: [Debug, Release]
std: [20]

steps:
- uses: actions/checkout@v3

- name: Install the latest clang compiler.
run: |
brew install llvm
ls /opt/homebrew/opt/llvm/bin
- name: Configure CMake
working-directory: ./
run: |
cmake -S . -B ./Build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++ -DDEV="TRUE" -DJSONIFIER_TEST=true
- name: Build the Test
working-directory: ./Build
run: |
cmake --build . --config=${{matrix.build_type}}
- name: Run the Test
working-directory: ./Build/Tests
run: |
./Json-Performance
continue-on-error: true

35 changes: 22 additions & 13 deletions .github/workflows/DeleteRuns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,50 @@ on:
workflow_dispatch:
inputs:
days:
description: 'Number of days.'
description: 'Days-worth of runs to keep for each workflow'
required: true
default: "0"
default: '0'
minimum_runs:
description: 'The minimum runs to keep for each workflow.'
description: 'Minimum runs to keep for each workflow'
required: true
default: "1"
default: '1'
delete_workflow_pattern:
description: 'The name or filename of the workflow. if not set then it will target all workflows.'
description: 'Name or filename of the workflow (if not set, all workflows are targeted)'
required: false
delete_workflow_by_state_pattern:
description: 'Remove workflow by state: active, deleted, disabled_fork, disabled_inactivity, disabled_manually'
description: 'Filter workflows by state: active, deleted, disabled_fork, disabled_inactivity, disabled_manually'
required: true
default: "All"
default: "ALL"
type: choice
options:
- "All"
- "ALL"
- active
- deleted
- disabled_inactivity
- disabled_manually
delete_run_by_conclusion_pattern:
description: 'Remove workflow by conclusion: action_required, cancelled, failure, skipped, success'
description: 'Remove runs based on conclusion: action_required, cancelled, failure, skipped, success'
required: true
default: "All"
default: "ALL"
type: choice
options:
- "All"
- "ALL"
- "Unsuccessful: action_required,cancelled,failure,skipped"
- action_required
- cancelled
- failure
- skipped
- success
dry_run:
description: 'Only log actions, do not perform any delete operations.'
description: 'Logs simulated changes, no deletions are performed'
required: false

jobs:
del_runs:
runs-on: ubuntu-latest
permissions:
actions: write
contents: read
steps:
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
Expand All @@ -53,5 +57,10 @@ jobs:
keep_minimum_runs: ${{ github.event.inputs.minimum_runs }}
delete_workflow_pattern: ${{ github.event.inputs.delete_workflow_pattern }}
delete_workflow_by_state_pattern: ${{ github.event.inputs.delete_workflow_by_state_pattern }}
delete_run_by_conclusion_pattern: ${{ github.event.inputs.delete_run_by_conclusion_pattern }}
delete_run_by_conclusion_pattern: >-
${{
startsWith(github.event.inputs.delete_run_by_conclusion_pattern, 'Unsuccessful:')
&& 'action_required,cancelled,failure,skipped'
|| github.event.inputs.delete_run_by_conclusion_pattern
}}
dry_run: ${{ github.event.inputs.dry_run }}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build-and-Test-CLANG-Ubuntu
name: Build-and-Test-GCC-Ubuntu

on:
workflow_dispatch:
push:
branches:
- main
Expand All @@ -13,24 +14,23 @@ jobs:
strategy:
fail-fast: false
matrix:
clang: [18]
gcc: [13]
build_type: [Debug, Release]
std: [20]

steps:
- uses: actions/checkout@v3

- name: Install the latest Clang compiler.
- name: Install the latest gcc compiler.
working-directory: Tests
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 18
sudo apt-get install build-essential
sudo apt-get install g++-13
- name: Configure CMake
working-directory: ./
run: |
cmake -S . -B ./Build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_CXX_COMPILER=/usr/bin/clang++-18 -DDEV="TRUE" -DJSONIFIER_TEST=true
cmake -S . -B ./Build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_CXX_COMPILER=/usr/bin/g++-13 -DDEV="TRUE" -DJSONIFIER_TEST=true
- name: Build the Test
working-directory: ./Build
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/MSVC_2022-Windows.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build-and-Test-MSVC-Windows

on:
workflow_dispatch:
push:
branches:
- main
Expand Down
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
.vs/
out/
Build/
Output Files/
Output/
Documentation/docs
Build/
Install/
DetectArchitecture.exe
DetectArchitecture.obj
JsonData.json
DetectArchitecture.obj
2 changes: 0 additions & 2 deletions BuildTools/Classes/Packager/Vcpkg.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ function constructPortAndVersionFile(string $sha512 = "0"): string
REF "v${VERSION}"
SHA512 ' . $sha512 . '
HEAD_REF main
PATCHES
uninstall-head.patch
)
set(VCPKG_BUILD_TYPE release) # header-only
Expand Down
2 changes: 2 additions & 0 deletions CMake/BuildFeatureTester.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cmake -S ./ -B ./Build -DCMAKE_BUILD_TYPE=Release
cmake --build ./Build --config=Release
3 changes: 3 additions & 0 deletions CMake/BuildFeatureTester.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
cmake -S ./ -B ./Build -DCMAKE_BUILD_TYPE=Release
cmake --build ./Build --config=Release
5 changes: 5 additions & 0 deletions CMake/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cmake_minimum_required(VERSION 3.10)
project(FeatureDetection)

# Add your source file(s)
add_executable(feature_detector Main.cpp)
Loading

0 comments on commit d657769

Please sign in to comment.