baidu / baidu/uid-generator

Why don't you use milliseconds timeBits ?

Open
#98 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.6k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

Why don't you use milliseconds here?
/** Bits allocate */
protected int timeBits = 28;
protected int workerBits = 22;
protected int seqBits = 13;

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the code that defines and consumes timeBits, workerBits, and seqBits, then trace how timestamps are generated and interpreted. Compare the current time unit with the proposed millisecond allocation and identify the compatibility, capacity, and rollover implications; the issue is complete only when the project’s intended approach is established.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.