每个实例必须初始化其自身的缓存,但它只缓存那些它要使用的引用,并且可以直接访问引用而不是要到一个散列映射中去寻找。
Each instance has to initialize its own cache, but it only caches the references it USES, and is able to access the reference directly rather than having to look it up in a hash map.
在传统的去耦合中,对象被散列化,然后使用散列值进行初始相似性检查。
In traditional de-duplication, objects are hashed, and the hash value is used as the initial check for similarity.
在 清单 1 中,我使用原始的和转换后的案例创建了一个 expected 散列值,然后根据映射的迭代包装 StringCategory,希望将每个关键词驼峰化(camelized)。
In Listing 1, I create an expected hash with the original and transformed cases, then wrap the StringCategory around the iteration over the map, expecting each of the keys to become camelized.
应用推荐