File: CHANGELOG.md

package info (click to toggle)
ruby-rqrcode-core 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 512 kB
  • sloc: ruby: 2,289; makefile: 4; sh: 4
file content (77 lines) | stat: -rw-r--r-- 3,214 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Changelog

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

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).

## [Unreleased]

## [2.1.0] - 2026-01-07

- Bump minimum Ruby version to 3.2
- Add comprehensive tests for QR code boundaries and encoding
- Performance optimisations: 80-90% faster QR code generation across all sizes
  - Optimised demerit calculation functions (`demerit_points_1_same_color`, `demerit_points_2_full_blocks`, `demerit_points_3_dangerous_patterns`)
  - Eliminated nested Range objects and redundant array lookups in hot paths
  - Pre-computed frequently accessed values to reduce calculation overhead
  - Large QR codes (v20) now generate in ~85ms vs ~154ms previously
- Memory optimisation: 70-76% reduction when using `RQRCODE_CORE_ARCH_BITS=32`
  - Single large QR (v24): 8.53 MB → 2.92 MB
  - Batch generation (100x v1): 37.91 MB → 9.10 MB
  - Also provides 2-4% speed improvement due to better cache locality
- Add comprehensive benchmarking infrastructure with memory and performance profiling tools

## [2.0.1] - 2025-11-25

- Update required_ruby_version to support >= rather than ~> ready for Ruby 4

## [2.0.0] - 2025-04-24

- Various README updates
- Fix for issue #43
- Fix for issue #42
- Drop Ruby < 3 to keep up with dependency updates
- Add option to use ENV `RQRCODE_CORE_ARCH_BITS` to override the bits value (32 or 64) used during the encoding process.
  This has been shown to greatly reduce the memory usage but I can't prove it doesn't break anything for all people.
  Use at your own risk.
- Fixed the 'Do Your Own Rendering' example code to reflect the current interface.

## [1.2.0] - 2021-08-26

- Added Multi Mode Support which allows for multi-segment encoding. Thanks to [@ssayer](https://github.com/ssayer)

## [1.1.0] - 2021-07-01

- Add a basic benchmark file
- Add standardRB badge
- Add `.freeze` on `CONST` lookup objects
- Remove unused `@mode` instance variable
- A batch of small refactors and optimizations

## [1.0.0] - 2021-04-23

### Changed

- README updated
- Small documentation clarification [@smnscp](https://github.com/smnscp).
- Rakefile cleaned up. You can now just run `rake` which will run specs and fix linting using `standardrb`

### Breaking Changes

- Very niche but a breaking change never the less. The `to_s` method _no longer_ accepts the `:true` and `:false` arguments, but prefers `:dark` and `:light`.

## [0.2.0] - 2020-12-26

### Changed

- fix `required_ruby_version` for Ruby 3 support

[unreleased]: https://github.com/whomwah/rqrcode_core/compare/v2.1.0...HEAD
[2.1.0]: https://github.com/whomwah/rqrcode_core/compare/v2.0.1...v2.1.0
[2.0.1]: https://github.com/whomwah/rqrcode_core/compare/v2.0.0...v2.0.1
[2.0.0]: https://github.com/whomwah/rqrcode_core/compare/v1.2.0...v2.0.0
[1.2.0]: https://github.com/whomwah/rqrcode_core/compare/v1.1.0...v1.2.0
[1.1.0]: https://github.com/whomwah/rqrcode_core/compare/v1.0.0...v1.1.0
[1.0.0]: https://github.com/whomwah/rqrcode_core/compare/v0.2.0...v1.0.0
[0.2.0]: https://github.com/whomwah/rqrcode_core/compare/v0.1.2...v0.2.0