Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Uid] improve base convertion logic#36070

Merged
nicolas-grekas merged 1 commit into
symfony:mastersymfony/symfony:masterfrom
nicolas-grekas:uuid-basenicolas-grekas/symfony:uuid-baseCopy head branch name to clipboard
Mar 14, 2020
Merged

[Uid] improve base convertion logic#36070
nicolas-grekas merged 1 commit into
symfony:mastersymfony/symfony:masterfrom
nicolas-grekas:uuid-basenicolas-grekas/symfony:uuid-baseCopy head branch name to clipboard

Conversation

@nicolas-grekas
Copy link
Copy Markdown
Member

Q A
Branch? master
Bug fix? no
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

The new logic is at least twice as fast as the current algo.
It's also way more common and generic.

@nicolas-grekas nicolas-grekas added this to the next milestone Mar 14, 2020
nicolas-grekas added a commit to symfony/polyfill that referenced this pull request Mar 14, 2020
…icolas-grekas)

This PR was merged into the 1.15-dev branch.

Discussion
----------

[uuid] improve base convertion logic for 32-bit systems

Similar to symfony/symfony#36070

Commits
-------

9d449a9 [uuid] improve base convertion logic for 32-bit systems
*
* @author Nicolas Grekas <p@tchwork.com>
*/
class BinaryUtil
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even if it's a utility class, should we add explicit tests for it?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's already tested since we use the code in Uuid and Ulid.
If someone whishes to contribute more specific tests, PR welcome.

@nicolas-grekas nicolas-grekas merged commit fa5d636 into symfony:master Mar 14, 2020
@nicolas-grekas nicolas-grekas deleted the uuid-base branch March 14, 2020 12:55
@nicolas-grekas nicolas-grekas modified the milestones: next, 5.1 May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.