8000 Merge pull request #853 from prometheus/superq/reduce_mmap_overhead · chnacib/client_python@89552cd · GitHub
[go: up one dir, main page]

Skip to content

Commit 89552cd

Browse files
authored
Merge pull request prometheus#853 from prometheus/superq/reduce_mmap_overhead
Reduce the mmap minimum size
2 parents db391db + 8f29782 commit 89552cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prometheus_client/mmap_dict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import os
44
import struct
55

6-
_INITIAL_MMAP_SIZE = 1 << 20
6+
_INITIAL_MMAP_SIZE = 1 << 16
77
_pack_integer_func = struct.Struct(b'i').pack
88
_pack_double_func = struct.Struct(b'd').pack
99
_unpack_integer = struct.Struct(b'i').unpack_from

0 commit comments

Comments
 (0)
0