{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":45938451,"defaultBranch":"master","name":"xid","ownerLogin":"rs","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2015-11-10T20:32:24.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/68232?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1681391164.0","currentOid":""},"activityList":{"items":[{"before":"c08f146a206e1999e4c7f2e73987fbaabfbfc7a4","after":"9d8d29f190786964cf2722e8e4d5c28c754b79ba","ref":"refs/heads/master","pushedAt":"2024-04-23T15:41:13.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"rs","name":"Olivier Poitrey","path":"/rs","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/68232?s=80&v=4"},"commit":{"message":"chore(readme): add gleam xid port (#101)","shortMessageHtmlLink":"chore(readme): add gleam xid port (#101)"}},{"before":"aa67b0c86a8afa78f6fca7a3111d33fef696f90f","after":"c08f146a206e1999e4c7f2e73987fbaabfbfc7a4","ref":"refs/heads/master","pushedAt":"2023-08-09T12:55:01.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"rs","name":"Olivier Poitrey","path":"/rs","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/68232?s=80&v=4"},"commit":{"message":"Update README.md (#99)","shortMessageHtmlLink":"Update README.md (#99)"}},{"before":"08be0c9071c0c3cf46e129a5750e3738b2f10d64","after":"aa67b0c86a8afa78f6fca7a3111d33fef696f90f","ref":"refs/heads/master","pushedAt":"2023-07-22T12:36:51.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"rs","name":"Olivier Poitrey","path":"/rs","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/68232?s=80&v=4"},"commit":{"message":"Add a Typescript implementation to docs (#98) (#98)","shortMessageHtmlLink":"Add a Typescript implementation to docs (#98) (#98)"}},{"before":"48733d464b58a6ec380621f37e0471aec0475627","after":"08be0c9071c0c3cf46e129a5750e3738b2f10d64","ref":"refs/heads/master","pushedAt":"2023-06-23T22:30:11.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"rs","name":"Olivier Poitrey","path":"/rs","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/68232?s=80&v=4"},"commit":{"message":"Two encoding-related cleanups (#82)\n\n* Remove superfluous bitmasking in `encode`\r\n\r\nWe only need to mask with `&0x1F` once per generated character, rather\r\nthan twice as we did in many cases. As long as the `&0x1F` operation is\r\nlast, we will always throw away the top three bits as expected.\r\n\r\n* Remove use of `unsafe` in `String()` method\r\n\r\nNow that an `Encode()` method was added in #56, it is less necessary to\r\nresort to unsafe methods in `String()`. This also appears to have\r\nminimal benefit, as seen by these before (using unsafe) and after\r\n(without unsafe) benchmarks:\r\n\r\nBefore (using unsafe):\r\n\r\n% go test -benchmem -bench .\r\ngoos: darwin\r\ngoarch: arm64\r\npkg: github.com/rs/xid\r\nBenchmarkNew-8 \t21845306\t 52.34 ns/op\t 0 B/op\t 0 allocs/op\r\nBenchmarkNewString-8 \t22674129\t 51.18 ns/op\t 0 B/op\t 0 allocs/op\r\nBenchmarkFromString-8 \t286217863\t 4.233 ns/op\t 0 B/op\t 0 allocs/op\r\nPASS\r\nok \tgithub.com/rs/xid\t4.142s\r\n\r\nAfter (without unsafe):\r\n\r\n% go test -benchmem -bench .\r\ngoos: darwin\r\ngoarch: arm64\r\npkg: github.com/rs/xid\r\nBenchmarkNew-8 \t21423278\t 53.01 ns/op\t 0 B/op\t 0 allocs/op\r\nBenchmarkNewString-8 \t21977233\t 53.67 ns/op\t 0 B/op\t 0 allocs/op\r\nBenchmarkFromString-8 \t289641164\t 4.162 ns/op\t 0 B/op\t 0 allocs/op\r\nPASS\r\nok \tgithub.com/rs/xid\t4.181s","shortMessageHtmlLink":"Two encoding-related cleanups (#82)"}},{"before":"47a0ac1e0b750ee1f43718be223bb07601c66a1f","after":"48733d464b58a6ec380621f37e0471aec0475627","ref":"refs/heads/master","pushedAt":"2023-06-19T23:50:03.114Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"rs","name":"Olivier Poitrey","path":"/rs","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/68232?s=80&v=4"},"commit":{"message":"clarified used encoding --> base32hex (#95)","shortMessageHtmlLink":"clarified used encoding --> base32hex (#95)"}},{"before":"7d8d4dbe88aa157aa9c6e73b08198d1f50b6fabd","after":"47a0ac1e0b750ee1f43718be223bb07601c66a1f","ref":"refs/heads/master","pushedAt":"2023-04-12T03:56:21.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"rs","name":"Olivier Poitrey","path":"/rs","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/68232?s=80&v=4"},"commit":{"message":"Generate machine ID using SHA-256 to avoid FIPS compliance issues (#94)\n\nWhile object ID generation doesn't rely on the cryptographic security of MD5,\r\nmany FIPS environments block the use of MD5 entirely. Mongo has also moved\r\naway from MD5 in their implementations of object ID generation for the same\r\nreason [1]. They initially replaced MD5 with FNV-1a, but the C driver at\r\nleast has since moved from FNV-1a to SipHash.\r\n\r\nIn any case, the machine ID is generated only once during initialization in\r\nthis code, so the speed of the chosen hash function is not important.\r\n\r\n[1] https://jira.mongodb.org/browse/DRIVERS-492","shortMessageHtmlLink":"Generate machine ID using SHA-256 to avoid FIPS compliance issues (#94)"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEOD8uJQA","startCursor":null,"endCursor":null}},"title":"Activity ยท rs/xid"}