Skip to content

Bump github.com/oschwald/maxminddb-golang/v2 from 2.3.0 to 2.4.0#87

Merged
zakird merged 1 commit into
mainfrom
dependabot/go_modules/github.com/oschwald/maxminddb-golang/v2-2.4.0
Jun 8, 2026
Merged

Bump github.com/oschwald/maxminddb-golang/v2 from 2.3.0 to 2.4.0#87
zakird merged 1 commit into
mainfrom
dependabot/go_modules/github.com/oschwald/maxminddb-golang/v2-2.4.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 8, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/oschwald/maxminddb-golang/v2 from 2.3.0 to 2.4.0.

Release notes

Sourced from github.com/oschwald/maxminddb-golang/v2's releases.

2.4.0

  • Reduced reflection decoding time and memory allocations. A city-lookup benchmark decoding a geoip2-style result allocates 20% fewer bytes (saving 48 B/op) and 2 fewer heap allocations per lookup when utilizing pointer-heavy destination structures.
  • Optimized map key decoding by adding a fast path for pointer keys, improving general lookup throughput by 2.7% to 6.4%.
  • Optimized tree traversal for IPv6 lookups, resulting in an ~8.8% speedup.
  • Fixed pointer-to-pointer chains in malformed database data so decoder entry points reject them consistently instead of following invalid chains.
  • Reduced memory mapping overhead and system allocations when invoking OpenBytes and NetworksWithin.
  • Cleaned up, simplified, and deduplicated internal decoder and reader structures, removing deprecated type assertion workarounds and unused helper functions.
Changelog

Sourced from github.com/oschwald/maxminddb-golang/v2's changelog.

2.4.0 - 2026-06-06

  • Reduced reflection decoding time and memory allocations. A city-lookup benchmark decoding a geoip2-style result allocates 20% fewer bytes (saving 48 B/op) and 2 fewer heap allocations per lookup when utilizing pointer-heavy destination structures.
  • Optimized map key decoding by adding a fast path for pointer keys, improving general lookup throughput by 2.7% to 6.4%.
  • Optimized tree traversal for IPv6 lookups, resulting in an ~8.8% speedup.
  • Fixed pointer-to-pointer chains in malformed database data so decoder entry points reject them consistently instead of following invalid chains.
  • Reduced memory mapping overhead and system allocations when invoking OpenBytes and NetworksWithin.
  • Cleaned up, simplified, and deduplicated internal decoder and reader structures, removing deprecated type assertion workarounds and unused helper functions.
Commits
  • f2b37f0 Merge pull request #215 from oschwald/greg/updates
  • 3157083 Document pointer chain validation
  • a45b429 Check direct map depth in struct paths
  • 4e23e71 Check pointer depth in struct fast paths
  • 112480c Limit Decoder Offset to one pointer
  • cc93215 Cache fields for pointer struct fields
  • 3532bab Reuse cached fields for nested structs
  • ee45d2c Skip pointer values without decoding targets
  • 594ed29 Reject pointer-to-pointer chains in decoder
  • cb0bca9 Merge pull request #214 from oschwald/dependabot/go_modules/golang.org/x/sys-...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/oschwald/maxminddb-golang/v2](https://github.com/oschwald/maxminddb-golang) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/oschwald/maxminddb-golang/releases)
- [Changelog](https://github.com/oschwald/maxminddb-golang/blob/main/CHANGELOG.md)
- [Commits](oschwald/maxminddb-golang@v2.3.0...v2.4.0)

---
updated-dependencies:
- dependency-name: github.com/oschwald/maxminddb-golang/v2
  dependency-version: 2.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Jun 8, 2026
@zakird zakird merged commit a37c938 into main Jun 8, 2026
3 checks passed
@zakird zakird deleted the dependabot/go_modules/github.com/oschwald/maxminddb-golang/v2-2.4.0 branch June 8, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant