Comments (3)
@UallenQbit When converting a negative integer into uint64, the result won't always be 18446744073709551516. Actually, the result will be the complemnt code of it. So different negative keys won't hit the same shard.
from ristretto.
@UallenQbit When converting a negative integer into uint64, the result won't always be 18446744073709551516. Actually, the result will be the complemnt code of it. So different negative keys won't hit the same shard.
Where is the other code for this?
from ristretto.
I mean the result will be two's complement of the negative number.
from ristretto.
Related Issues (20)
- [FEATURE]: Jemalloc 5.3.0 HOT 1
- [FEATURE]: use system jemalloc HOT 1
- [Non-hashed key values in Item]: onEvict should send the non hashed key values HOT 2
- [BUG]: compilation reports asm error when -buildmode=plugin
- [QUESTION]: Is there any way to implement an expired map counter with ristretto? HOT 1
- [QUESTION]: How can I pre warm the cache ? HOT 1
- [QUESTION]: When get v.0.1.2 tag and it's release note? HOT 1
- [QUESTION]: Why is Ristretto so slow and has such a small hit ratio? HOT 8
- Update projects using ristretto HOT 1
- [BUG]: Can't use Google's uuid.UUID (a byte array rather than slice) as a key HOT 6
- [BUG]: cost added always differ by 56 HOT 3
- new release HOT 3
- Missing commits/PRs on main HOT 2
- Cache configuration checks should consider negative values for `NumCounters`/`MaxCost`/`BufferItems` HOT 1
- [BUG]: <Title>Cannot correctly view a transparent png file, which is very long HOT 1
- [QUESTION]: why does memory keep rising when i used ristretto
- [Documentation]: Describe guarantees (or lack thereof) under aliased mutation of arguments and return values
- Unable to override LDFLAGS to point to different jemalloc lib path
- [QUESTION]: When will there be a new release (v2 to maintain compatibility with libraries using the old version)? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ristretto.