Skip to content

Commit cd52ac6

Browse files
Merge pull request #1108 from petergoldstein/changelog/1103-1104-1106
Add CHANGELOG entries for #1103, #1104, #1106
2 parents 93e0086 + a0a3311 commit cd52ac6

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ Dalli Changelog
44
Unreleased
55
==========
66

7+
Performance:
8+
9+
- Avoid repeated `RUBY_ENGINE` checks on every socket read (#1103)
10+
- Moved the JRuby branch from a runtime `if` inside `ConnectionManager#read` to a class-level conditional method definition, so the check happens once at load time rather than on every read call
11+
- Thanks to Jean Boussier for this contribution
12+
13+
- Eliminate per-call array allocations in `ResponseProcessor` (#1104)
14+
- Token sets passed to `error_on_unexpected!` (e.g. `[VA, EN, HD]`) were allocated as new arrays on every invocation; replaced with frozen constants defined once at class load time
15+
- Thanks to Jean Boussier for this contribution
16+
17+
- Avoid string copies when building request commands in `RequestFormatter` (#1106)
18+
- Changed `cmd + TERMINATOR` to `cmd << TERMINATOR`; since `cmd` is always a mutable string, the in-place append avoids copying the entire command string just to append two bytes
19+
- Thanks to Jean Boussier for this contribution
20+
721
5.0.4
822
==========
923

0 commit comments

Comments
 (0)