|
7 | 7 | `Unmarshaler` interface by implementing `UnmarshalMaxMindDB(d *Decoder) error` |
8 | 8 | instead. |
9 | 9 | - `Open` and `FromBytes` now accept options. |
10 | | -- `IncludeNetworksWithoutData` and `IncludeAliasedNetworks` now return a |
11 | | - `NetworksOption` rather than being one themselves. This was done to improve |
12 | | - the documentation organization. |
| 10 | +- **BREAKING CHANGE**: `IncludeNetworksWithoutData` and `IncludeAliasedNetworks` |
| 11 | + now return a `NetworksOption` rather than being one themselves. These must now |
| 12 | + be called as functions: `Networks(IncludeAliasedNetworks())` instead of |
| 13 | + `Networks(IncludeAliasedNetworks)`. This was done to improve the documentation |
| 14 | + organization. |
13 | 15 | - Added `Unmarshaler` interface to allow custom decoding implementations for |
14 | 16 | performance-critical applications. Types implementing |
15 | 17 | `UnmarshalMaxMindDB(d *Decoder) error` will automatically use custom decoding |
|
32 | 34 | /city/names/en" or "at offset 1234, path /list/0/name" instead of just the |
33 | 35 | underlying error message. |
34 | 36 | - **PERFORMANCE**: Added string interning optimization that reduces allocations |
35 | | - while maintaining thread safety. Provides ~15% improvement for single-threaded |
36 | | - City lookups and reduces allocation count from 33 to 10 per operation in |
37 | | - downstream libraries. Uses a fixed 512-entry cache with per-entry mutexes |
38 | | - for bounded memory usage (~8KB) while minimizing lock contention. |
| 37 | + while maintaining thread safety. Reduces allocation count from 33 to 10 per |
| 38 | + operation in downstream libraries. Uses a fixed 512-entry cache with per-entry |
| 39 | + mutexes for bounded memory usage (~8KB) while minimizing lock contention. |
39 | 40 |
|
40 | 41 | ## 2.0.0-beta.3 - 2025-02-16 |
41 | 42 |
|
42 | 43 | - `Open` will now fall back to loading the database in memory if the |
43 | 44 | file-system does not support `mmap`. Pull request by database64128. GitHub |
44 | 45 | #163. |
45 | | -- Made significant improvements to the Windows memory-map handling. . GitHub |
| 46 | +- Made significant improvements to the Windows memory-map handling. GitHub |
46 | 47 | #162. |
47 | 48 | - Fix an integer overflow on large databases when using a 32-bit architecture. |
48 | 49 | See ipinfo/mmdbctl#33. |
|
0 commit comments