-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce memory per shm string by 8 bytes
Related to #323 This slightly helps performance of `apc.serializer=default` when there are lots of small strings to unpersist. (and reduces size of serialized data by 8 bytes with other serializers) With APCu's current design and eviction always being a possibility, strings must always be copied. (zval flags could be used to check the type if that stopped being the case) For example, fetching an array mapping small strings to small strings: Before: bench_apcu_fetch_large_config: numValues= 65536 repetitions= 256 elapsed=3.010 shared memory= 9381144 After: bench_apcu_fetch_large_config: numValues= 65536 repetitions= 256 elapsed=2.980 shared memory= 8332560
- Loading branch information
1 parent
a25dbce
commit 4c7b0b5
Showing
6 changed files
with
78 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters