Skip to content

Commit

Permalink
:arorw_up: v2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kris-jusiak committed May 16, 2024
1 parent a8dbaea commit 06fcc00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ lookup:
---
### Performance (https://godbolt.org/z/MjMzG9zvE)
### Performance (https://godbolt.org/z/x3Y984MTj)
```cpp
int main(int, const char** argv) {
Expand Down Expand Up @@ -254,7 +254,7 @@ time $CXX -std=c++20 -O3 mph_int_1024.cpp -c -DDISABLE_STATIC_ASSERT_TESTS # 0.
time $CXX -std=c++20 -O3 mph_int_1024.cpp -c # 0.141s
```

> [6548 string key/value pairs] (https://godbolt.org/z/6q44dhq6c)
> [6548 string key/value pairs] (https://godbolt.org/z/x3Y984MTj)
```cpp
time $CXX -std=c++20 -O3 mph_str_6548.cpp -c -DDISABLE_STATIC_ASSERT_TESTS # 2.821s
Expand Down Expand Up @@ -424,7 +424,7 @@ template<auto kv, config cfg = config<kv>{}>
> Configuration

```cpp
#define MPH 2'3'0 // Current library version (SemVer)
#define MPH 2'4'0 // Current library version (SemVer)
#define MPH_PAGE_SIZE 4096u // If set __builtin_memcpy(data, sizeof(T)) & bzhi(size)
// If not __builtin_memcpy(data, size)
```
Expand Down Expand Up @@ -562,7 +562,7 @@ template<auto kv, config cfg = config<kv>{}>
CPMAddPackage(
Name mph
GITHUB_REPOSITORY boost-ext/mph
GIT_TAG v2.3.0
GIT_TAG v2.4.0
)
add_library(mph INTERFACE)
target_include_directories(mph SYSTEM INTERFACE ${mph_SOURCE_DIR})
Expand Down
4 changes: 2 additions & 2 deletions mph
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
// http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef MPH
#define MPH 2'3'0 // SemVer
#define MPH 2'4'0 // SemVer
#pragma GCC system_header

/**
* [Minimal] Perfect hash library (https://github.com/boost-ext/mph)
*/
namespace mph::inline v2_3_0 {
namespace mph::inline v2_4_0 {
using u8 = __UINT8_TYPE__;
using u16 = __UINT16_TYPE__;
using u32 = __UINT32_TYPE__;
Expand Down

0 comments on commit 06fcc00

Please sign in to comment.