Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 36 additions & 20 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,48 @@
# PRTree Improvements
# Changelog

## Critical Fixes
All notable changes to this project will be documented in this file.

### 1. Windows Crash Fixed
- **Issue**: Fatal crash with `std::mutex` (not copyable, caused deadlocks)
- **Fix**: Use `std::unique_ptr<std::recursive_mutex>`
- **Result**: Thread-safe, no crashes, pybind11 compatible
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### 2. Error Messages
- Improved with context while maintaining backward compatibility
- Example: `"Given index is not found. (Index: 999, tree size: 2)"`
## [0.7.1] - 2025-11-08

## Improvements Applied
### Added
- Modernized project structure for better OSS contribution experience (#52)
- Added comprehensive CONTRIBUTING.md with development guidelines
- Improved development tooling configuration
- Enhanced documentation for contributors

- **C++20**: Migrated standard, added concepts for type safety
- **Exception Safety**: noexcept + RAII (no memory leaks)
- **Thread Safety**: Recursive mutex protects all mutable operations
### Fixed
- Fixed critical Windows crash with `std::mutex` (#51)
- Changed to `std::unique_ptr<std::recursive_mutex>` for thread-safe, pybind11-compatible implementation
- Resolved fatal crashes and deadlocks on Windows platform
- Optimized CI workflows for better reliability and performance (#51)

## Test Results
### Improved
- Expanded test coverage with comprehensive test suite (#48)
- Now includes 674 unit tests covering edge cases and various scenarios
- Improved test organization and structure
- Added `query_intersections()` method for efficient AABB pair detection (#47)
- Enables finding all pairs of intersecting bounding boxes efficiently

✅ **674/674 unit tests pass**

## Performance
### Changed
- Upgraded dependency versions in CI workflows (#50)
- Migrated to C++20 standard with concepts for type safety
- Enhanced error messages with context while maintaining backward compatibility
- Example: `"Given index is not found. (Index: 999, tree size: 2)"`

### Performance
- Construction: 9-11M ops/sec (single-threaded)
- Memory: 23 bytes/element
- Parallel scaling: Limited by algorithm (Amdahl's law), not implementation
- All 674 unit tests pass

## [0.7.0] - 2024-XX-XX

## Future Work
### Added
- Intersection bug fix
- Python 3.13 support

- Parallel partitioning algorithm for better thread scaling (2-3x expected)
### Improvements
- Exception Safety: noexcept + RAII (no memory leaks)
- Thread Safety: Recursive mutex protects all mutable operations
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "python_prtree"
version = "0.7.0"
version = "0.7.1"
description = "Python implementation of Priority R-Tree"
readme = "README.md"
requires-python = ">=3.8"
Expand Down
2 changes: 1 addition & 1 deletion src/python_prtree/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

from .core import PRTree2D, PRTree3D, PRTree4D

__version__ = "0.7.0"
__version__ = "0.7.1"

__all__ = [
"PRTree2D",
Expand Down