|
1 | | -# Changelog |
2 | | - |
3 | | -All notable changes to this project will be documented in this file. |
4 | | - |
5 | | -## [5.1.0] - 2024-01-XX |
6 | | - |
7 | | -### Added |
8 | | -- **Multi-Strategy Converter Architecture**: Introduced three different conversion strategies to optimize for different use cases |
9 | | - - `MemoryOptimizedConverter`: Minimal memory footprint (~400KB), ideal for web requests |
10 | | - - `CachedConverter`: Full caching (~4MB), 2-3x faster for repeated conversions |
11 | | - - `SmartConverter`: Adaptive optimization (600KB-1.5MB), balances memory and performance |
12 | | -- `ConverterFactory` for creating strategy-specific converters |
13 | | -- Strategy selection methods: `useMemoryOptimized()`, `useCached()`, `useSmart()`, `useAutoStrategy()` |
14 | | -- Memory usage tracking with `getMemoryUsage()` method |
15 | | -- Comprehensive benchmark tools: |
16 | | - - `benchmark/run.php`: Enhanced with multi-strategy comparison |
17 | | - - `benchmark/compare-strategies.php`: Detailed performance analysis |
18 | | - - `bin/benchmark-strategy`: Command-line benchmark tool |
19 | | -- New test suites for converter strategies and memory usage |
20 | | - |
21 | | -### Changed |
22 | | -- Default converter now uses the memory-optimized strategy |
23 | | -- `Pinyin::converter()` now accepts an optional strategy parameter |
24 | | -- Improved benchmark output with strategy comparison tables |
25 | | - |
26 | | -### Performance Improvements |
27 | | -- Cached strategy provides 2-3x speedup for batch processing |
28 | | -- Smart strategy reduces memory usage for short texts by skipping unnecessary dictionaries |
29 | | -- Memory-optimized strategy maintains low memory footprint while processing |
30 | | - |
31 | | -### Documentation |
32 | | -- Added comprehensive performance optimization guide in README |
33 | | -- Added strategy selection guidelines |
34 | | -- Added memory management best practices |
35 | | -- Added performance comparison data |
36 | | - |
37 | | -### Backward Compatibility |
38 | | -- All existing APIs remain unchanged and fully compatible |
39 | | -- Default behavior remains the same (memory-optimized) |
40 | | -- New features are opt-in |
41 | | - |
42 | | -## [5.0.0] - Previous Release |
43 | | - |
44 | | -### Changed |
45 | | -- Minimum PHP version requirement to 8.0.2 |
46 | | -- ... |
| 1 | +## [5.3.4] - 2025-03-16 |
| 2 | + |
| 3 | +### 🚀 Features |
| 4 | + |
| 5 | +- Resolved #211 |
| 6 | + |
| 7 | +### ⚙️ Miscellaneous Tasks |
| 8 | + |
| 9 | +- Format |
| 10 | +## [5.3.3] - 2024-08-01 |
| 11 | + |
| 12 | +### 🚀 Features |
| 13 | + |
| 14 | +- 使用 heteronym 代替 polyphonic 多音字 #184 |
| 15 | +- 取首字母时,能否保留完整的英文 #199 |
| 16 | + |
| 17 | +### 🐛 Bug Fixes |
| 18 | + |
| 19 | +- 修复 琢 的音频顺序 #207 |
| 20 | +- 补充案例 #207 |
| 21 | +- Tests |
| 22 | +- Tests |
| 23 | +## [5.3.2] - 2024-03-19 |
| 24 | + |
| 25 | +### 🚀 Features |
| 26 | + |
| 27 | +- 取首字母时,能否保留完整的英文 #199 |
| 28 | +## [5.3.1] - 2024-03-19 |
| 29 | + |
| 30 | +### 🐛 Bug Fixes |
| 31 | + |
| 32 | +- 「仆区」应该读 pú ōu 而非 pú qū #200 |
| 33 | +- Tests #200 |
| 34 | +## [5.3.0] - 2023-10-27 |
| 35 | + |
| 36 | +### 🚀 Features |
| 37 | + |
| 38 | +- 添加sentenceFull,支持保留其他字符 (#198) |
| 39 | +- Full sentence, #198 |
| 40 | +## [5.2.2] - 2023-09-27 |
| 41 | + |
| 42 | +### ⚙️ Miscellaneous Tasks |
| 43 | + |
| 44 | +- Bin |
| 45 | +## [5.2.1] - 2023-06-17 |
| 46 | + |
| 47 | +### 🐛 Bug Fixes |
| 48 | + |
| 49 | +- Bin |
| 50 | +## [5.2.0] - 2023-06-12 |
| 51 | + |
| 52 | +### 🚀 Features |
| 53 | + |
| 54 | +- 增加 Pinyin::polyphonesAsArray. fixed #195 |
| 55 | + |
| 56 | +### 📚 Documentation |
| 57 | + |
| 58 | +- 更新文档提示 |
| 59 | +- 更新文档提示 |
| 60 | +- 更新文档提示 |
| 61 | +## [5.1.0] - 2023-04-27 |
| 62 | + |
| 63 | +### 💼 Other |
| 64 | + |
| 65 | +- 移除错误语法 (#190) |
| 66 | +## [5.0.0] - 2022-07-24 |
| 67 | + |
| 68 | +### 🐛 Bug Fixes |
| 69 | + |
| 70 | +- 优化符号匹配规则 |
| 71 | +## [1.0-beta] - 2014-07-16 |
0 commit comments