Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add an ordered map to remove unnecessary dependencies #1074

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

Tiscs
Copy link
Collaborator

@Tiscs Tiscs commented Nov 22, 2024

In a past commit (a08c009), a non-tagged version of go-ordered-map v2 was introduced, but only for the ordered traversal of the table and column information, and some unnecessary indirect dependencies were introduced.

This PR provides an in-package ordered map implementation so that go-ordered-map v2 and its related dependencies can be removed, and returned to go 1.22, which is still widely used.

@Tiscs Tiscs force-pushed the packed-ordered-map branch 3 times, most recently from 053a37c to 23a65ea Compare November 22, 2024 06:50
@j2gg0s
Copy link
Collaborator

j2gg0s commented Nov 22, 2024

@Tiscs

Do you mind handling the updates on master?

@Tiscs
Copy link
Collaborator Author

Tiscs commented Nov 22, 2024

@Tiscs

Do you mind handling the updates on master?

Rebased to uptrace/bun:master now.

@j2gg0s
Copy link
Collaborator

j2gg0s commented Nov 22, 2024

@vmihailenco Should we consider compatibility with at least two minor go versions?

@vmihailenco
Copy link
Member

@vmihailenco Should we consider compatibility with at least two minor go versions?

Yes, let's do it.

The old map implementation was actually compatible with Go 1.22, but I've used new Go iterators which are 1.23+ only. But the new map is also fine.

@vmihailenco vmihailenco merged commit ae8bdd3 into uptrace:master Nov 22, 2024
4 checks passed
@Tiscs Tiscs deleted the packed-ordered-map branch November 22, 2024 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants