File tree 1 file changed +26
-1
lines changed
1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## NEXT / YYYY-MM-DD
4
+
5
+ - 1 deprecation:
6
+
7
+ - Deprecated ` MIME::Type#priority_compare ` . In a future release, this will be
8
+ will be renamed to ` MIME::Type#<=> ` . This method is used in tight loops, so
9
+ there is no warning message for either ` MIME::Type#priority_compare ` or
10
+ ` MIME::Type#<=> ` .
11
+
12
+ - 1 enhancement:
13
+
14
+ - Improved the performance of sorting by eliminating the complex comparison
15
+ flow from ` MIME::Type#priority_compare ` . The old version shows under 600
16
+ i/s, and the new version shows over 900 i/s. In sorting the full set of MIME
17
+ data, there are three differences between the old and new versions; after
18
+ comparison, these differences are considered acceptable.
19
+
20
+ - 1 bug fix:
21
+
22
+ - Simplified the default compare implementation (` MIME::Type#<=> ` ) to use the
23
+ new ` MIME::Type#priority_compare ` operation and simplify the fallback to
24
+ ` String ` comparison. This _ may_ result in exceptions where there had been
25
+ none, as explicit support for several special values (which should have
26
+ caused errors in any case) have been removed.
27
+
3
28
## 3.6.2 / 2025-03-25
4
29
5
30
- Updated the reference to the changelog in the README, fixing RubyGems metadata
@@ -151,7 +176,7 @@ there are some validation changes and updated code with formatting.
151
176
152
177
## 3.3 / 2019-09-04
153
178
154
- - 1 minor enhancement
179
+ - 1 minor enhancement:
155
180
156
181
- Jean Boussier reduced memory usage for Ruby versions 2.3 or higher by
157
182
interning various string values in each type. This is done with a
You can’t perform that action at this time.
0 commit comments