Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ hashOptimize
Function
hashOptimize
packages/effect/src/unstable/cluster/internal/hash.ts:14–14 ·
view source on GitHub ↗
(n: number)
Source
from the content-addressed store, hash-verified
12
*/
13
/** @internal */
14
export
const
hashOptimize = (n: number): number => (n & 0xbfffffff) | ((n >>> 1) & 0x40000000)
15
16
/** @internal */
17
export
const
hashString = (str: string) => {
Callers
1
hashString
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected