optify-config 1.1.0-aarch64-linux → 1.1.1-aarch64-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7a552cac0a63740d0e2254d55ba5e1e20f191c49f8cf283eb5551a56aec69f9
4
- data.tar.gz: 83660d61b70675b557845ab9499ef1ae6cdfd7761afa9ef530174f3394f806c5
3
+ metadata.gz: 9e07d165f6c657961271be1fbf32dce5170bf09a218e62e74619611bb751836f
4
+ data.tar.gz: 31a863affcd275f56c129776842757439fd8448d97fbf3c7d5ab5e4d21b09e95
5
5
  SHA512:
6
- metadata.gz: 63a2a1c2ab9e9d11590b636ef23cb0146029dcc3204bac7f74761a397f11958282301ad2ab0d27c3cbb6d2ebcd7087693d34b682f7d7453e724e9146123b591f
7
- data.tar.gz: 9cdadf9e473e41234574444b6abd4a34784b7fef6a840d318cd126fdf51c37e2b8fbf69a28337de4f8d11bfe8c7fb96c4b5f768819c334e2ebce06326a7495c8
6
+ metadata.gz: c5cd8d8867088d60d78ec6b9ccd34cef8e9b6b8531af9684b57a0986c1bbb48d2baeff010df06cc504f61954647890aaef7674775100a39abe04ff20097126ee
7
+ data.tar.gz: 8c50ca862ef0ab2af00c4244892673bc52c58a80daec62e50350e35abcbb58dab117ad1228069a0b504b2fbd0c72fd7a6a1b8d0b6e344c1f5afd2feba6392b5a
@@ -88,7 +88,11 @@ module Optify
88
88
  # * Avoid any possible conversion overhead.
89
89
  # * Memory management: probably better to do it in Ruby for a Ruby app and avoid memory in Rust.
90
90
  init unless @cache
91
- feature_names = get_canonical_feature_names(feature_names)
91
+ unless preferences&.skip_feature_name_conversion
92
+ # When there are just a few names, then it can be faster to convert them one by one in a loop to avoid working with an array in Rust.
93
+ # When there are over 7 names, then it is faster to convert them with one call to Rust.
94
+ feature_names = get_canonical_feature_names(feature_names)
95
+ end
92
96
 
93
97
  cache_key = [key, feature_names, config_class]
94
98
  result = @cache&.fetch(cache_key, NOT_FOUND_IN_CACHE_SENTINEL)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: optify-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Justin D. Harris
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-04-10 00:00:00.000000000 Z
11
+ date: 2025-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sorbet-runtime