Skip to content

Commit

Permalink
reduce bytes length for memory saving, closes #16
Browse files Browse the repository at this point in the history
  • Loading branch information
sun-jiao committed Jan 5, 2024
1 parent c1b8480 commit 03afe7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/xid_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class Xid {
var counter = _counter();
var machineID = _getMachineId();

_xidBytes = List.filled(20, 0, growable: false);
_xidBytes = List.filled(12, 0, growable: false);

_xidBytes![0] = (now >> 24) & 0xff;
_xidBytes![1] = (now >> 16) & 0xff;
Expand Down

0 comments on commit 03afe7b

Please sign in to comment.