diff options
| author | Brock Peabody <bpeabody@twosigma.com> | 2016-11-23 18:32:48 -0500 |
|---|---|---|
| committer | David Turner <dturner@twosigma.com> | 2017-01-20 17:33:56 -0500 |
| commit | 4d99c4cfc604bb141fd4e1423e934ebd3fb7e2a7 (patch) | |
| tree | 7fa6287b0ecfb6873dfd74eaf819cff1cf396bc2 /include/git2/sys/stream.h | |
| parent | ca05857e71f8d11582b1ad82f63c6a61e96fe20e (diff) | |
| download | libgit2-4d99c4cfc604bb141fd4e1423e934ebd3fb7e2a7.tar.gz | |
Allow for caching of submodules.
Added `git_repository_submodule_cache_all` to initialze a cache of
submodules on the repository so that operations looking up N
submodules are O(N) and not O(N^2). Added a
`git_repository_submodule_cache_clear` function to remove the cache.
Also optimized the function that loads all submodules as it was itself
O(N^2) w.r.t the number of submodules, having to loop through the
`.gitmodules` file once per submodule. I changed it to process the
`.gitmodules` file once, into a map.
Signed-off-by: David Turner <dturner@twosigma.com>
Diffstat (limited to 'include/git2/sys/stream.h')
0 files changed, 0 insertions, 0 deletions
