libgit2/src
Russell Belfer 1bbacc9ff6 Avoid extra copying in pqueue operations
This tweaks the pqueue_up and pqueue_down routines so that they
will not do full element swaps but instead carry over the state
of the previous loop iteration and only assign elements for which
we know the final position.  This will avoid a little bit of data
assignment which should improve performance in theory.

Also got rid of some vector helpers that I'm no longer using.
2014-02-04 16:46:43 -08:00
..
hash Add simple global shutdown hooks 2013-09-17 09:31:45 -07:00
transports Factor out code to convert local "url" into a path. 2014-01-19 16:24:58 +11:00
unix Test cancel from indexer progress callback 2013-12-11 15:02:20 -08:00
win32 Test cancel from indexer progress callback 2013-12-11 15:02:20 -08:00
xdiff Merge branch 'new-error-handling' into development 2012-05-02 15:59:02 -07:00
array.h array: Wrap array_alloc as a single statement 2013-11-01 17:36:09 +01:00
attr_file.c Fix warning 2013-09-19 23:14:06 +08:00
attr_file.h Revert PR #1462 and provide alternative fix 2013-08-09 10:52:35 -07:00
attr.c Misc cleanups 2014-01-30 09:59:59 -08:00
attr.h Implement global/system file search paths 2013-03-15 16:39:00 -07:00
attrcache.h Add ~ expansion to global attributes and excludes 2013-05-24 11:09:04 -07:00
bitvec.h bitvec: Simplify the bit vector code 2013-07-10 21:05:47 +02:00
blame_git.c Fix MSVC 64-bit warnings 2013-11-05 10:55:54 -08:00
blame_git.h Blame: minor cleanup 2013-09-25 14:40:19 -07:00
blame.c Some fixes for Windows x64 warnings 2014-01-30 09:59:59 -08:00
blame.h Improve GIT_EUSER handling 2013-12-11 10:57:49 -08:00
blob.c Some missing oid to id renames 2014-01-30 09:59:59 -08:00
blob.h Fix rename detection to use actual blob size 2013-07-25 12:27:39 -07:00
branch.c Provide good default reflog messages in branch api 2014-01-30 15:53:52 -08:00
branch.h branch: rename 'tracking' to 'upstream' 2013-03-30 15:45:57 +01:00
bswap.h update copyrights 2013-01-08 17:31:27 -06:00
buf_text.c Fix longstanding valgrind warning 2013-09-17 09:31:44 -07:00
buf_text.h Start of filter API + git_blob_filtered_content 2013-09-17 09:30:06 -07:00
buffer.c fix corner cases and an undefined behavior 2014-01-20 11:41:21 -06:00
buffer.h Handle git_buf's from users more liberally 2014-01-08 10:08:23 -08:00
cache.c util: It's called memzero 2013-06-12 21:10:33 +02:00
cache.h git_atomic_ssize for 64-bit atomics only on 64-bit platforms 2013-04-25 12:40:33 -05:00
cc-compat.h Trying to fix Win32 warnings 2013-08-22 14:45:10 -07:00
checkout.c Fix checkout NONE to not remove file 2014-01-30 11:38:59 -08:00
checkout.h Move functions in checkout_conflicts to checkout.c 2013-10-16 16:20:21 -04:00
clone.c Enhance testing of signature parameters 2014-01-30 15:53:52 -08:00
commit_list.c Replace pqueue with code from hashsig heap 2014-02-03 21:02:08 -08:00
commit_list.h Replace pqueue with code from hashsig heap 2014-02-03 21:02:08 -08:00
commit.c commit: remvoe legacy 'oid' naming 2014-01-25 08:15:44 +01:00
commit.h Introduce git_revert to revert a single commit 2013-12-02 16:57:41 -06:00
common.h One more rename/cleanup for callback err functions 2013-12-11 10:57:50 -08:00
config_cache.c Add config read fns with controlled error behavior 2013-12-11 10:57:49 -08:00
config_file.c Fix a memory leak in config_parse. 2014-01-13 22:17:07 +01:00
config_file.h replaced foreach() with non callback based iterations in git_config_backend 2013-08-08 11:14:53 +02:00
config.c config: use git_buf for returning paths 2014-01-27 04:44:05 +01:00
config.h config: use git_buf for returning paths 2014-01-27 04:44:05 +01:00
crlf.c index: rename an entry's id to 'id' 2014-01-25 08:15:44 +01:00
date.c Use time(2) to get the time 2013-08-19 16:44:17 -05:00
delta-apply.c update copyrights 2013-01-08 17:31:27 -06:00
delta-apply.h update copyrights 2013-01-08 17:31:27 -06:00
delta.c Fixed left shift size of int. 2013-12-08 01:50:10 -08:00
delta.h Fix warnings on Win64 build 2012-11-27 13:18:29 -08:00
diff_driver.c Update Javascript userdiff driver and tests 2014-01-27 11:45:06 -08:00
diff_driver.h Initial take on builtin drivers with multiline 2014-01-24 10:43:05 -08:00
diff_file.c diff: rename the file's 'oid' to 'id' 2014-01-25 08:15:44 +01:00
diff_file.h Rename diff objects and split patch.h 2013-10-11 14:51:54 -07:00
diff_patch.c diff: rename the file's 'oid' to 'id' 2014-01-25 08:15:44 +01:00
diff_patch.h Rename diff objects and split patch.h 2013-10-11 14:51:54 -07:00
diff_print.c diff: change id abbrev option's name to id_abbrev 2014-01-25 08:15:44 +01:00
diff_tform.c diff: rename the file's 'oid' to 'id' 2014-01-25 08:15:44 +01:00
diff_xdiff.c Remove converting user error to GIT_EUSER 2013-12-11 10:57:49 -08:00
diff_xdiff.h Reorganize diff and add basic diff driver 2013-06-10 10:10:39 -07:00
diff.c diff: rename the file's 'oid' to 'id' 2014-01-25 08:15:44 +01:00
diff.h diff: rename the file's 'oid' to 'id' 2014-01-25 08:15:44 +01:00
errors.c Improve GIT_EUSER handling 2013-12-11 10:57:49 -08:00
fetch.c Remove converting user error to GIT_EUSER 2013-12-11 10:57:49 -08:00
fetch.h remote: put the _download() callback with the others 2013-10-02 06:41:42 +02:00
fetchhead.c One more rename/cleanup for callback err functions 2013-12-11 10:57:50 -08:00
fetchhead.h update copyrights 2013-01-08 17:31:27 -06:00
filebuf.c move mode_t to filebuf_open instead of _commit 2013-11-04 22:33:05 -05:00
filebuf.h move mode_t to filebuf_open instead of _commit 2013-11-04 22:33:05 -05:00
fileops.c Cleanups, renames, and leak fixes 2013-12-12 12:11:38 -08:00
fileops.h Plug configuration file search paths leaks 2013-11-05 17:36:12 +01:00
filter.c Cleanups, renames, and leak fixes 2013-12-12 12:11:38 -08:00
filter.h Add ident filter 2013-09-17 09:31:45 -07:00
fnmatch.c update copyrights 2013-01-08 17:31:27 -06:00
fnmatch.h update copyrights 2013-01-08 17:31:27 -06:00
global.c Don't use git_atomic as an integer 2013-10-04 19:35:32 -07:00
global.h Add simple global shutdown hooks 2013-09-17 09:31:45 -07:00
graph.c Replace pqueue with code from hashsig heap 2014-02-03 21:02:08 -08:00
hash.c update copyrights 2013-01-08 17:31:27 -06:00
hash.h Add simple global shutdown hooks 2013-09-17 09:31:45 -07:00
hashsig.c Major rename detection changes 2013-07-31 16:40:42 -07:00
hashsig.h Refine pluggable similarity API 2013-02-20 15:09:41 -08:00
ident.c Bug fixes and cleanups 2013-09-17 09:31:46 -07:00
ignore.c Remove converting user error to GIT_EUSER 2013-12-11 10:57:49 -08:00
ignore.h Improve building ignore file lists 2013-08-09 11:41:41 -07:00
index.c Fix typo setting sorted flag when reloading index 2014-02-04 10:33:30 -08:00
index.h index: Compare with given len 2014-01-29 13:15:51 -08:00
indexer.c Some fixes for Windows x64 warnings 2014-01-30 09:59:59 -08:00
iterator.c index: rename an entry's id to 'id' 2014-01-25 08:15:44 +01:00
iterator.h Put hooks in place for precompose in dirload fn 2013-10-03 10:44:13 -07:00
khash.h Isolate khash inlines from global namespace 2012-07-12 11:49:15 -07:00
map.h update copyrights 2013-01-08 17:31:27 -06:00
merge_file.c diff: rename the file's 'oid' to 'id' 2014-01-25 08:15:44 +01:00
merge_file.h Introduce diff3 mode for checking out conflicts 2014-01-20 17:15:13 -05:00
merge.c Replace pqueue with code from hashsig heap 2014-02-03 21:02:08 -08:00
merge.h Don't try to merge binary files 2014-01-20 17:15:12 -05:00
message.c messsage: use git_buf in prettify() 2014-01-27 04:44:06 +01:00
message.h update copyrights 2013-01-08 17:31:27 -06:00
mwindow.c Further threading fixes 2013-04-22 16:52:07 +02:00
mwindow.h update copyrights 2013-01-08 17:31:27 -06:00
netops.c netops: fix leak 2013-11-18 21:40:19 +01:00
netops.h Use http_parser_parse_url to parse urls 2013-11-04 11:42:14 -08:00
notes.c index: rename an entry's id to 'id' 2014-01-25 08:15:44 +01:00
notes.h note: rename the id getter to git_note_id() 2014-01-24 11:18:51 +01:00
object_api.c object: haha 2013-04-30 13:19:02 +02:00
object.c Avoid temporary object in lookup routine 2013-10-28 05:01:33 -07:00
object.h object: Explicitly define helper API methods for all obj types 2013-04-30 13:13:38 +02:00
odb_loose.c One more rename/cleanup for callback err functions 2013-12-11 10:57:50 -08:00
odb_pack.c Remove converting user error to GIT_EUSER 2013-12-11 10:57:49 -08:00
odb.c odb: handle NULL pointers passed to git_odb_stream_free 2014-01-12 23:33:59 -08:00
odb.h Create public filter object and use it 2013-09-17 09:30:06 -07:00
offmap.h pack: introduce a delta base cache 2013-01-11 16:55:37 +01:00
oid.c oid: handle NULL pointers passed to git_oid_shorten_free() 2014-01-12 23:34:02 -08:00
oid.h oid: Helper for old-school hashcmp 2013-08-14 10:34:07 +02:00
oidmap.h Add callback to git_objects_table 2013-04-22 16:51:40 +02:00
pack-objects.c Reorganize zstream API and fix wrap problems 2014-01-30 09:59:59 -08:00
pack-objects.h Packbuilder contains its own zstream 2014-01-14 09:45:14 -08:00
pack.c Drop parsing pack filename SHA1 part, no one cares the filename 2014-01-23 23:28:28 +08:00
pack.h Drop parsing pack filename SHA1 part, no one cares the filename 2014-01-23 23:28:28 +08:00
path.c Fix up some valgrind leaks and warnings 2013-12-11 16:56:17 -08:00
path.h Remove converting user error to GIT_EUSER 2013-12-11 10:57:49 -08:00
pathspec.c index: Compare with given len 2014-01-29 13:15:51 -08:00
pathspec.h Add git_pathspec_match_diff API 2013-07-10 20:50:33 +02:00
pool.c pool: Correct overflow checks 2013-12-13 12:41:22 +01:00
pool.h Improved tree iterator internals 2013-03-14 13:40:15 -07:00
posix.c Test cancel from indexer progress callback 2013-12-11 15:02:20 -08:00
posix.h Use our strnlen on MacOS for backward compat 2014-01-03 11:37:23 -08:00
pqueue.c Avoid extra copying in pqueue operations 2014-02-04 16:46:43 -08:00
pqueue.h Convert pqueue to just be a git_vector 2014-02-04 10:01:37 -08:00
push.c refspec: move to git_buf for outputting strings 2014-01-27 04:44:06 +01:00
push.h Initial Implementation of progress reports during push 2013-09-30 13:22:28 -04:00
refdb_fs.c Enhance clarity 2014-01-30 15:51:00 -08:00
refdb_fs.h immutable references and a pluggable ref database 2013-03-07 11:01:52 -06:00
refdb.c refs: expose has_log() on the backend 2013-12-09 15:55:11 +01:00
refdb.h refs: expose has_log() on the backend 2013-12-09 15:55:11 +01:00
reflog.c Align git_signature_dup. 2014-01-14 21:33:35 +01:00
reflog.h reflog: move the reflog implementation into refdb_fs 2013-10-02 06:53:24 +02:00
refs.c Enhance testing of signature parameters 2014-01-30 15:53:52 -08:00
refs.h refs: remove the _with_log differentiation 2014-01-15 13:32:43 +01:00
refspec.c refspec: move to git_buf for outputting strings 2014-01-27 04:44:06 +01:00
refspec.h refspec: move to git_buf for outputting strings 2014-01-27 04:44:06 +01:00
remote.c Ensure renaming a reference updates the reflog 2014-01-30 15:52:13 -08:00
remote.h Fix warnings 2013-11-18 12:14:50 -08:00
repo_template.h Make mode handling during init more like git 2013-02-27 13:44:15 -08:00
repository.c Add reflog params to set-head calls 2014-01-30 15:51:00 -08:00
repository.h clean up state metadata more consistently 2013-12-02 16:57:41 -06:00
reset.c diff: rename the file's 'oid' to 'id' 2014-01-25 08:15:44 +01:00
revert.c Validate struct versions in merge, revert 2013-12-12 17:40:40 -05:00
revparse.c git_reflog_entry_message can be null 2014-01-20 23:32:18 +08:00
revwalk.c Convert pqueue to just be a git_vector 2014-02-04 10:01:37 -08:00
revwalk.h revwalk: allow simplifying by first-parent 2013-09-09 20:31:14 +02:00
settings.c Move libgit2 settings out of util 2014-01-14 18:36:00 -08:00
sha1_lookup.c Backport @peff's fix for duplicates in sha1_lookup 2013-09-04 13:16:57 +02:00
sha1_lookup.h sha1_lookup: do not use the "experimental" lookup mode 2013-08-14 10:28:01 +02:00
signature.c Align git_signature_dup. 2014-01-14 21:33:35 +01:00
signature.h update copyrights 2013-01-08 17:31:27 -06:00
sortedcache.c Convert pqueue to just be a git_vector 2014-02-04 10:01:37 -08:00
sortedcache.h Add stddef include for sortedcache 2013-08-28 11:20:47 -07:00
stash.c refs: remove the _with_log differentiation 2014-01-15 13:32:43 +01:00
status.c diff: rename the file's 'oid' to 'id' 2014-01-25 08:15:44 +01:00
status.h Rename diff objects and split patch.h 2013-10-11 14:51:54 -07:00
strmap.c config: get rid of a useless asignment 2013-08-12 11:40:57 +02:00
strmap.h config: get rid of a useless asignment 2013-08-12 11:40:57 +02:00
submodule.c Make submodule fetchRecurse match other options 2014-01-30 09:59:59 -08:00
submodule.h Make submodule fetchRecurse match other options 2014-01-30 09:59:59 -08:00
tag.c refs: remove the _with_log differentiation 2014-01-15 13:32:43 +01:00
tag.h Simplify object table parse functions 2013-04-22 16:52:06 +02:00
thread-utils.c update copyrights 2013-01-08 17:31:27 -06:00
thread-utils.h Load SRWLock APIs at runtime 2013-08-26 14:56:31 -07:00
trace.c Fix trailing whitespaces 2013-05-15 22:41:30 +02:00
trace.h Fix trailing whitespaces 2013-05-15 22:41:30 +02:00
transport.c Fixed compilation on Windows when using libssh2. 2013-12-05 11:13:58 -05:00
tree-cache.c tree-cache: Fix error message typo 2013-11-19 13:25:38 +01:00
tree-cache.h update copyrights 2013-01-08 17:31:27 -06:00
tree.c Convert pqueue to just be a git_vector 2014-02-04 10:01:37 -08:00
tree.h Add cat-file example and increase const use in API 2013-05-16 10:38:27 -07:00
tsort.c Sorting function cleanup and MinGW fix 2013-03-11 16:43:58 -07:00
userdiff.h Some fixes for Windows x64 warnings 2014-01-30 09:59:59 -08:00
util.c Move libgit2 settings out of util 2014-01-14 18:36:00 -08:00
util.h Mark git__timer as inline on OSX 2013-10-01 12:56:47 -07:00
vector.c Convert pqueue to just be a git_vector 2014-02-04 10:01:37 -08:00
vector.h Avoid extra copying in pqueue operations 2014-02-04 16:46:43 -08:00
zstream.c Defer zstream NUL termination to end 2014-01-30 10:23:35 -08:00
zstream.h Reorganize zstream API and fix wrap problems 2014-01-30 09:59:59 -08:00