Repository navigation
chore: remove Boost::regex, fix benchmarks/warnings, and refresh docs - #72
Merged
cursor[bot] merged 1 commit intoDec 2, 2026
Merged
Conversation
Co-authored-by: esrrhs <esrrhs@163.com>
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #72 +/- ##
=======================================
Coverage 94.52% 94.53%
=======================================
Files 130 130
Lines 32588 32644 +56
=======================================
+ Hits 30803 30859 +56
Misses 1785 1785 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
cursor
Bot
deleted the
cursor/remove-boost-regex-and-refresh-docs-c9d3
branch
December 2, 2026 06:11
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements P5 hygiene, dependency slimming, and benchmark/documentation refresh on top of post-PR #68/#69/#70/#71
master:Remove
Boost::regexdependencyboost::regexinIsNumberandIsInteger(src/util/string_util.cpp) with hand-written ASCII scanners preserving the exact semantics of the original regexes (ReplaceEscapeCharsuntouched).regexfromBOOST_INCLUDE_LIBRARIES,${BOOST_SOURCE_DIR}/libs/regex/include, andBoost::regexfromTARGET_LIBinsrc/CMakeLists.txt.common.IsNumberandcommon.IsIntegerintest/test_common.cppwith edge-case unit tests.Fix distorted benchmarks, compiler warnings, and CMake duplication
benchmark/benchmark_function.cpp: updatedbench_multi_return/inner_multito actually return and unpack 3 values (x, x * 2, x * 3).benchmark/benchmark_table.cpp: updatedbench_table_packto actually calltable.pack(...).benchmark/benchmark_string.cpp: alignedBM_CPP_ToStringto a singlestd::to_string(n)call (matching Lua/FakeLua) and switchedBM_Lua_ToStringtoCallLuaString.benchmark/(12 deprecated const-refbenchmark::DoNotOptimizecalls) andtest/(-Wunused-resultintest/test_jitter.cpp,-Wdangling-elseintest/test_net.cpp).OPTIONSinbenchmark/CMakeLists.txt.Refresh benchmark and native module documentation
benchmark/README.mdandbenchmark/README.zh.mdwith freshly measured core-pinned Release (-O3 -DNDEBUG) results against PUC-Rio Lua 5.4.8, includingStringFindLiteralandNativeObject.src/native/README.md(added missingyaml,toml,xml,ini,logmodules) andsrc/native/README.zh.md(added missinglogmodule), and updated staleBoost.Beast/ Asioio_context/Boost.Redis/Boost.Process v2/Boost.Math/Boost.Algorithm(math.clamp) references to the actual implementations (libevent,hiredis, POSIXfork/execve/waitpid+ Win32CreateProcessW,std::erf/std::clamp).Verification
GCC 13.3.0,-O3 -DNDEBUG) buildslibfakelua.so,flua,unit_tests, andbench_markcleanly with 0 compiler warnings acrosssrc/,cmd/,test/, andbenchmark/.flua cmd/test.luapasses (exit 0) across all 3 backends (TCC,GCC,INTERP).unit_tests(withFAKELUA_HOME=/agent/repos/fakelua): 1858 / 1881 passed (the 23 failures are exclusivelytest_mysql.*/test_redis.*without local MySQL/Redis daemons in the container), including expandedcommon.IsNumberandcommon.IsIntegertests.bench_marksuite run pinned to core 0 (taskset -c 0 ./bench_mark --benchmark_min_time=0.2s --benchmark_repetitions=1) against Lua 5.4.8: GCC leads Lua on 50/51 compared scenarios (StringFind3.22x,StringFindLiteral2.77x,StringGmatch1.65x,StringFindPattern1.06x,Fibonacci45.06x,MathSqrt16.27x).