3e8f03e59f
RecyclableList tests extended & parameterized for various combinations of block sizes in source & target lists, including different no. of items.
Marek Lemańczyk2023-03-17 01:42:30 +01:00
5235ea12bc
RecyclableListExtensions.CopyTo fixed to not raise exceptions in some configurations.
Marek Lemańczyk2023-03-17 01:40:56 +01:00
cf284865e9
RecyclableList finalizer added to make sure that the recyclable arrays are correctly returned.
Marek Lemańczyk2023-03-16 02:24:18 +01:00
c2eefdfe3b
RecyclableCollections.Contains(T item) fixes to exceptions found by tests.
Marek Lemańczyk2023-03-16 02:21:14 +01:00
ca6ee45bb6
RecyclableCollections.AddRange(List<T> items) fixes to exceptions found by tests.
Marek Lemańczyk2023-03-16 02:20:16 +01:00
bdf69f300d
Added test cases for various block sizes & items counts.
Marek Lemańczyk2023-03-12 18:01:30 +01:00
bf392d60ed
Tiny cleanup - "in" removed, where doesn't add value.
Marek Lemańczyk2023-03-12 16:41:28 +01:00
addef85027
RecyclableList.AddRange(IEnumerable<T> source) performance improvements.
Marek Lemańczyk2023-03-12 15:41:29 +01:00
5572c7c57c
Tiny cleanup. AddRange will now favor RecyclableList & RecyclableArrayList parameters.
Marek Lemańczyk2023-03-12 03:45:41 +01:00
c211fb6ee4
RecyclableList.AddRange(IEnumerable<T> source) performance improvements. Small source code cleanup.
Marek Lemańczyk2023-03-12 03:44:07 +01:00
efb393e13f
Recyclable.AddRange fixed to ignore empty sources
Marek Lemańczyk2023-03-12 03:23:13 +01:00
25a85ec763
New tests added. AddRangeShouldAddItemsInCorrectOrder & AddRangeShouldNotOverrideItems converted to theories with [MemberData]
Marek Lemańczyk2023-03-11 23:16:15 +01:00
91fae49bdb
RecyclableList.AddRange(IEnumerable<T> source) fixed to properly add items when we can get non-enumerated count.
Marek Lemańczyk2023-03-11 23:15:04 +01:00
1ea0af8d34
RecyclableListExtensions.CopyTo fixed to copy items from the last block in the range
Marek Lemańczyk2023-03-11 22:12:50 +01:00
9b9b683462
RecyclableList.AddRange(RecyclableList<T> items) fixed to copy items only within block size & skip the rest.
Marek Lemańczyk2023-03-11 22:09:36 +01:00
625b44d341
xxx_AddRangeWhenSourceIsIList benchmarks will now use TestObjectsAsRecyclableList, to avoid any hidden List optimizations
Marek Lemańczyk2023-03-11 20:04:36 +01:00
e968b47863
RecyclableList.AddRange(RecyclableList<T> items) code standardized.
Marek Lemańczyk2023-03-11 20:02:02 +01:00
fb3290f853
RecyclableList.AddRange(IList<T> items) performance improvements
Marek Lemańczyk2023-03-11 19:51:51 +01:00
44c8286f85
RecyclableList.RecyclableList.AddRange(RecyclableArrayList<T> items) fixed to break the loop when we reach the last block.
Marek Lemańczyk2023-03-11 19:38:50 +01:00
a7d6a9b7e5
RecyclableList.AddRange(T[] items) fixed to break the loop when we reach the last block.
Marek Lemańczyk2023-03-11 19:33:40 +01:00
73e07c917d
RecyclableList_LongIndexOf_FirstItems & RecyclableList_LongIndexOf_LastItems benchmarks added
Marek Lemańczyk2023-03-05 18:55:23 +01:00
ba17f6972f
RecyclableList_IndexOf_FirstItems, RecyclableList_IndexOf_LastItems, List_IndexOf_FirstItems & List_IndexOf_LastItems benchmarks fixed to always search for some items, if the no. of test cases is low.
Marek Lemańczyk2023-03-05 18:54:33 +01:00
2558f57934
RecyclableList.Remove modified to allow removing the last item.
Marek Lemańczyk2023-03-05 18:51:06 +01:00
ec355160f9
IndexOf & LongIndexOf made alike. Small refactoring.
Marek Lemańczyk2023-03-05 18:50:09 +01:00
a50ef10989
RecyclableList.IndexOf performance improvements.
Marek Lemańczyk2023-03-05 14:33:43 +01:00
cbd9850f58
RecyclableCollectionsBenchmarks.List_Contains_FirstItems, . List_Contains_LastItems, .RecyclableList_Contains_FirstItems, .RecyclableList_Contains_LastItems fixed to always search for at least 1 element.
Memek2023-03-02 18:54:35 +01:00
248dff8fda
BenchmarkBase fixed to cover case when BockSize is 0.
Memek2023-03-02 17:47:25 +01:00
3552dd00d1
Test object count increased to 100_000 to better cover cases.
Marek Lemańczyk2023-03-01 23:09:48 +01:00
f38ee0d498
Contains benchmarks will now always search for 10% of the test objects count.
Marek Lemańczyk2023-03-01 00:41:16 +01:00
573e387a75
RecyclableList.Contains performance improvement +1%. Other versions kept for reference, if needed. Pending cleanup.
Marek Lemańczyk2023-03-01 00:25:06 +01:00
681cd179d2
Test RecyclableArrayList.ContainsShouldNotFindNonExistingItems and ContainsShouldNotFindAnythingWhenListEmpty added.
Memek2023-02-08 22:50:08 +01:00
50353aecc2
Test RecyclableArrayList.ConstructorShouldAcceptDuplicates added.
Memek2023-02-08 16:31:13 +01:00
d4a63d5d33
Test RecyclableList.ConstructorSourceShouldInitializeList added.
Memek2023-02-08 15:43:42 +01:00
230401a56b
Test RecyclableList.LongIndexOfShouldReturnCorrectIndexes added.
Memek2023-02-08 14:46:47 +01:00
a37f572518
RecyclableList.InsertAt test added.
Memek2023-02-07 19:42:00 +01:00
32d915087f
Test RecyclableList.AddRangeShouldAddItemsInCorrectOrderWhenSourceIsArray and AddRangeShouldAddItemsInCorrectOrderWhenSourceIsList added.
Memek2023-02-07 17:08:01 +01:00
1eefa2d84f
AddCountShouldSuceed test fixed.
Memek2023-02-07 17:01:50 +01:00
37b0114779
Test RecyclabeArrayList.AddShouldAcceptDuplicates added.
Memek2023-02-06 21:11:21 +01:00
23e92b0521
Tests for RecyclableArrayList.Contains and RecyclableList.Clear added.
Memek2023-02-06 18:02:50 +01:00
85fcf69c75
Local int vars converted to stackalloc'ed array for performance measures. Recyclable.Add benchmarks yield 0.42 - 0.45 vs List.Add
mlemanczyk2023-01-29 21:34:14 +01:00
1b3c24bf74
Performance improvement - removed unneeded case. We never hit it in our benchmarks or tests. We'll use Memory<T> instead of Span<T> again, where applicable.
mlemanczyk2023-01-28 23:48:28 +01:00
8b7c4407d5
Performance improvement - removed unneeded case. We never hit it in our benchmarks or tests.
mlemanczyk2023-01-28 23:48:28 +01:00