git/t/unit-tests
Chandra Pratap 31216ee28a t-reftable-block: use block_iter_reset() instead of block_iter_close()
block_iter_reset() restores a block iterator to its state at the time
of initialization without freeing any memory while block_iter_close()
deallocates the memory for the iterator.

In the current testing setup, a block iterator is allocated and
deallocated for every iteration of a loop, which hurts performance.
Improve upon this by using block_iter_reset() at the start of each
iteration instead. This has the added benifit of testing
block_iter_reset(), which currently remains untested.

Similarly, remove reftable_record_release() for a reftable record
that is still in use.

Mentored-by: Patrick Steinhardt <ps@pks.im>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Chandra Pratap <chandrapratap3519@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-08-21 09:41:41 -07:00
..
.gitignore
lib-oid.c t/: migrate helper/test-oidtree.c to unit-tests/t-oidtree.c 2024-06-12 13:33:20 -07:00
lib-oid.h hash-ll: merge with "hash.h" 2024-06-14 10:26:33 -07:00
t-ctype.c t-ctype: use if_test 2024-07-30 13:32:43 -07:00
t-example-decorate.c t-example-decorate: remove test messages 2024-07-30 13:31:46 -07:00
t-hash.c t/: migrate helper/test-{sha1, sha256} to unit-tests/t-hash 2024-05-29 09:11:41 -07:00
t-hashmap.c t: port helper/test-hashmap.c to unit-tests/t-hashmap.c 2024-08-06 09:25:54 -07:00
t-mem-pool.c mem-pool: fix big allocations 2023-12-28 12:22:43 -08:00
t-oidmap.c t: migrate helper/test-oidmap.c to unit-tests/t-oidmap.c 2024-07-03 09:12:14 -07:00
t-oidtree.c t/: migrate helper/test-oidtree.c to unit-tests/t-oidtree.c 2024-06-12 13:33:20 -07:00
t-prio-queue.c t-prio-queue: simplify using compound literals 2024-04-02 13:41:32 -07:00
t-reftable-basics.c t-reftable-basics: use if_test 2024-07-30 13:32:44 -07:00
t-reftable-block.c t-reftable-block: use block_iter_reset() instead of block_iter_close() 2024-08-21 09:41:41 -07:00
t-reftable-merged.c t-reftable-merged: add test for REFTABLE_FORMAT_ERROR 2024-07-12 09:55:41 -07:00
t-reftable-pq.c t-reftable-pq: add tests for merged_iter_pqueue_top() 2024-08-01 09:07:29 -07:00
t-reftable-record.c t-reftable-record: add tests for reftable_log_record_compare_key() 2024-07-02 08:12:26 -07:00
t-reftable-tree.c t-reftable-tree: improve the test for infix_walk() 2024-08-04 09:50:27 -07:00
t-strbuf.c global: improve const correctness when assigning string constants 2024-06-07 10:30:48 -07:00
t-strcmp-offset.c t/: port helper/test-strcmp-offset.c to unit-tests/t-strcmp-offset.c 2024-05-20 13:39:49 -07:00
t-strvec.c Merge branch 'rs/unit-tests-test-run' 2024-08-19 11:07:36 -07:00
t-trailer.c trailer unit tests: inspect iterator contents 2024-05-02 09:57:08 -07:00
test-lib.c unit-tests: add if_test 2024-07-30 13:32:43 -07:00
test-lib.h Merge branch 'rs/unit-tests-test-run' 2024-08-19 11:07:36 -07:00