Name |
Last commit
|
Last update |
---|---|---|
.. | ||
indexer.c | ||
packbuilder.c | ||
sharing.c |
Opening the same repository multiple times will currently open the same file multiple times, as well as map the same region of the file multiple times. This is not necessary, as the packfile data is immutable. Instead of opening and closing packfiles directly, introduce an indirection and allocate packfiles globally. This does mean locking on each packfile open, but we already use this lock for the global mwindow list so it doesn't introduce a new contention point.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
indexer.c | Loading commit data... | |
packbuilder.c | Loading commit data... | |
sharing.c | Loading commit data... |