mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
30ba9cdd24
Summary: Once we're done reading the delta data, we madvise it away. Test Plan: dump all the hashes from a datapack into a separate file. then run a script to fetch all the delta chains. observed that the memory footprint did not increase significantly. ``` #!/usr/bin/env python import binascii import cdatapack dp = cdatapack.datapack('/dev/shm/hgcache/fbsource/packs/8b5d28f7a5bd7391a0b060c88af8cca3af357c24') for ix, line in enumerate(open('/tmp/hashes', 'r')): line = line.strip() dp.getdeltachain(binascii.unhexlify(line)) ``` Reviewers: #fastmanifest, durham Reviewed By: durham Subscribers: durham, mitrandir Differential Revision: https://phabricator.intern.facebook.com/D3686830 Signature: t1:3686830:1470716333:e8fc8e3e3fa29c1931f69222c17e10f519a4a8c2 |
||
---|---|---|
.. | ||
cdatapack | ||
ctreemanifest | ||
__init__.py | ||
basepack.py | ||
basestore.py | ||
cacheclient.py | ||
constants.py | ||
contentstore.py | ||
datapack.py | ||
debugcommands.py | ||
fileserverclient.py | ||
historypack.py | ||
metadatastore.py | ||
remotefilectx.py | ||
remotefilelog.py | ||
remotefilelogserver.py | ||
repack.py | ||
shallowbundle.py | ||
shallowrepo.py | ||
shallowstore.py | ||
shallowutil.py | ||
shallowverifier.py |