Commit Graph

1532 Commits

Author SHA1 Message Date
Ion Gaztañaga 5451da7434 Replace reference parameters with return value 2026-03-17 13:31:00 +01:00
Ion Gaztañaga 9524edaf65 Fix typo 2026-03-17 12:05:53 +01:00
Ion Gaztañaga d3fd6c5a51 Added set_difference, set_intersection, set_symmetric_difference to the benchmark. Reorder execution of algorithms lexicographicaly. 2026-03-17 11:58:35 +01:00
Ion Gaztañaga 2897bad30a Add forceinline to trivial functions. 2026-03-17 11:46:42 +01:00
Ion Gaztañaga 0ee02823ad Use segmented_copy instead of raw loops 2026-03-17 11:46:24 +01:00
Ion Gaztañaga bf10746f96 Add BOOST_CONTAINER_FORCEINLINE 2026-03-17 10:56:58 +01:00
Ion Gaztañaga c2c0132187 Add BOOST_CONTAINER_FORCEINLINE and avoid if conditional in loop 2026-03-17 10:51:51 +01:00
Ion Gaztañaga bb10a9e22a Erase dead code and add BOOST_CONTAINER_FORCEINLINE 2026-03-17 10:46:46 +01:00
Ion Gaztañaga c5c7b86caa Add BOOST_CONTAINER_FORCEINLINE 2026-03-17 10:46:19 +01:00
Ion Gaztañaga 8e19a4965d Improve escape mechanism to avoid unwanted loop optimizations. 2026-03-17 10:38:10 +01:00
Ion Gaztañaga 13ee44c848 Take container by value to avoid replacing values in mutating algorithms 2026-03-17 00:10:13 +01:00
Ion Gaztañaga 703720b186 Add segmented_set_union to benchmark 2026-03-17 00:09:43 +01:00
Ion Gaztañaga bf8459e740 Use segmented_copy to speed up segmented_set_union 2026-03-17 00:07:22 +01:00
Ion Gaztañaga 5d7b28ca4e Tidy segmented_is_sorted_until_dispatch typedefs 2026-03-16 22:56:24 +01:00
Ion Gaztañaga e4fc3e6852 Add "segmented_is_sorted_until" to benchmark 2026-03-16 22:55:49 +01:00
Ion Gaztañaga bb987410f7 Remove unused variable. 2026-03-16 19:13:21 +01:00
Ion Gaztañaga 85785938d5 Use C++11 standard library implementation when available. 2026-03-16 19:13:02 +01:00
Ion Gaztañaga d026a2431a Refactor segmented_copy_if_dispatch to avoid too many intermediate functions 2026-03-16 16:12:56 +01:00
Ion Gaztañaga f5032dad86 Added find_if_not, partition and stable_partition to benchmark 2026-03-16 15:35:08 +01:00
Ion Gaztañaga de0fa6d366 Use std::size_t for iterator distance to make sure it does not overflow with type Size 2026-03-16 15:34:37 +01:00
Ion Gaztañaga f359cec6ef Use correct OutIter template name and eliminate unneeded generate_n_scan overload 2026-03-16 13:49:46 +01:00
Ion Gaztañaga 923906c84c Add not_pred functor for testing and algorithm refactoring 2026-03-16 13:48:55 +01:00
Ion Gaztañaga 9fb397a022 Add non_segmented test to stable_partition 2026-03-16 13:48:29 +01:00
Ion Gaztañaga ccf322367e Poreperly format reverse algorithm to improve mainteinance 2026-03-16 13:48:06 +01:00
Ion Gaztañaga 37ad1e7d0d Add segmented_find_if_not algorithm 2026-03-16 13:47:25 +01:00
Ion Gaztañaga 484d9c791c Avoid references in stable_partition_shift and stable_partition_scan 2026-03-16 00:54:08 +01:00
Ion Gaztañaga 6983125fcb Refactor copy_if test to pass the predicate from outside and reuse code 2026-03-16 00:04:08 +01:00
Ion Gaztañaga 69f6f7d2e2 Avoid taking by reference InIter2 and use pass/return by value to avoid aliasing problems. 2026-03-15 23:56:15 +01:00
Ion Gaztañaga 6af550e851 Tidy conditional code 2026-03-15 23:55:28 +01:00
Ion Gaztañaga 57e7578def generate_ref should support sentinels 2026-03-15 23:47:42 +01:00
Ion Gaztañaga 69242181c4 Use forward declared random access iterator from detail 2026-03-15 23:47:26 +01:00
Ion Gaztañaga 6449da8e64 Refactor segmented_generate_ref to use generate_ref 2026-03-15 23:32:09 +01:00
Ion Gaztañaga e1561323f8 Improve performance detecting random access iterators and avoiding checking count on every iteration 2026-03-15 23:31:16 +01:00
Ion Gaztañaga 4a3878a8e2 Implemente fill and fill_n in terms of generate and generate_n 2026-03-15 23:30:51 +01:00
Ion Gaztañaga f61f3379a5 Improve local iterator 2026-03-15 23:05:59 +01:00
Ion Gaztañaga 4f133c33c4 Reformat is_sorted. 2026-03-15 17:20:29 +01:00
Ion Gaztañaga b213a5a96d Optimize nest_local_iterator comparison (support only same-segment comparison 2026-03-15 17:20:03 +01:00
Ion Gaztañaga 74540abf67 Avoid aliasing in equal_ref 2026-03-15 17:19:27 +01:00
Ion Gaztañaga 82dfcf54be Add segmented algorithms simple benchmark 2026-03-14 01:11:11 +01:00
Ion Gaztañaga 40aa14be74 Minor tweaks to nest 2026-03-14 01:10:50 +01:00
Ion Gaztañaga ee4d1bb7eb Implement segmented_remove_if as segmented_find_if + segmented_remove_copy_if 2026-03-13 23:17:46 +01:00
Ion Gaztañaga 6231b1990e Clean "segmented_find_if" segmented dispatch 2026-03-13 23:17:20 +01:00
Ion Gaztañaga 3dae33c40e forceinline equal_to_value basic operations 2026-03-13 23:16:56 +01:00
Ion Gaztañaga 52d139a0b5 Temporarily use simpler, but segmented_find_if based code for remove_if 2026-03-13 15:54:36 +01:00
Ion Gaztañaga 0015930d1a Dispatch some xxx algorithms to their xxx_if counterpart 2026-03-13 15:54:03 +01:00
Ion Gaztañaga bf5248374f Optimized "reverse" algorithms 2026-03-12 23:08:06 +01:00
Ion Gaztañaga ad3db6feec Avoid aliasing in reference passed "count" argument 2026-03-12 23:04:11 +01:00
Ion Gaztañaga 345c428f75 Erase algorithms with no easy segmentation strategy 2026-03-12 23:03:32 +01:00
Ion Gaztañaga 5bed25c4da Put nest iterators outside "nest_detail" 2026-03-12 15:40:02 +01:00
Ion Gaztañaga 3e5895285a Rename nest's iterator to "nest_iterator" 2026-03-12 14:12:00 +01:00