• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jordanvrtanoski / luacpp / 57d862fa-2e85-4c44-a3bb-a081216e8046
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: fix/code-quality-and-security
DEFAULT BRANCH: main
Ran 18 Feb 2026 10:46PM UTC
Jobs 1
Files 44
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Feb 2026 10:02PM UTC coverage: 98.92% (-1.0%) from 99.941%
57d862fa-2e85-4c44-a3bb-a081216e8046

push

circleci

jordanvrtanoski
[IMP] Add Lua state pooling with colored pools

Implement opt-in state pooling system for high-performance scenarios:
- StatePool class for managing reusable lua_State instances
- PoolManager with predefined pool colors (default, sandboxed, minimal, io)
- Selective library loading per pool configuration
- PooledState RAII wrapper for exception-safe state management
- Thread-safe pool mode for multi-threaded applications
- Pool warmup/drain/statistics methods
- PoolExhaustedException for handling pool exhaustion

Add LuaContext integration:
- RunPooled(), RunWithEnvironmentPooled() methods
- AcquirePooledState(), ReleasePooledState() methods
- AcquirePooledStateRAII() for automatic state return
- createPool(), hasPool(), getPool() management methods

Add comprehensive documentation and examples:
- docs/2-state-pooling.md: Complete pooling documentation
- docs/1-introduction.md: Added pooling overview section
- example_StatePool.cpp: Basic pooling usage
- example_StatePoolAdvanced.cpp: Advanced patterns with threads

All 126 tests passing including 56 new pooling tests.

Signed-off-by: Jordan Vrtanoski <jordan.vrtanoski@gmail.com>

857 of 884 new or added lines in 10 files covered. (96.95%)

2564 of 2592 relevant lines covered (98.92%)

49.92 hits per line

Uncovered Changes

Lines Coverage ∆ File
22
84.06
Source/Engine/StatePool.cpp
3
96.05
Source/Engine/PoolManager.cpp
2
99.13
Source/UnitTest/TestStatePool.cpp
Jobs
ID Job ID Ran Files Coverage
1 57d862fa-2e85-4c44-a3bb-a081216e8046.1 18 Feb 2026 10:46PM UTC 44
98.92
Source Files on build 57d862fa-2e85-4c44-a3bb-a081216e8046
  • Tree
  • List 44
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • CircleCI Build #57D862FA...
  • 5b5d6d1f on github
  • Prev Build on main (#F32E1555...)
  • Next Build on feature/state-pooling-colored-pools (#F704A6AD...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc