aboutsummaryrefslogtreecommitdiff
path: root/primrose/mem_profiling/uvec_lazy_512m.rs
diff options
context:
space:
mode:
authorAria <me@aria.rip>2023-10-05 15:04:40 +0100
committerAria <me@aria.rip>2023-10-05 15:04:40 +0100
commit1a8fba28d02a8415118e22f6d3816264b3840c95 (patch)
tree886265fa0f87b4897f356db7c016407dc951c141 /primrose/mem_profiling/uvec_lazy_512m.rs
parent171f808f49675c7960939c441aa36063d868af80 (diff)
add original primrose source
Diffstat (limited to 'primrose/mem_profiling/uvec_lazy_512m.rs')
-rw-r--r--primrose/mem_profiling/uvec_lazy_512m.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/primrose/mem_profiling/uvec_lazy_512m.rs b/primrose/mem_profiling/uvec_lazy_512m.rs
new file mode 100644
index 0000000..4cbed46
--- /dev/null
+++ b/primrose/mem_profiling/uvec_lazy_512m.rs
@@ -0,0 +1,16 @@
+use primrose::library::lazy_unique_vector::{LazyUniqueVec};
+use primrose::traits::Container;
+use primrose::tools::gen_dataset_512;
+
+fn vec_insertion_512m() {
+ let s: &mut dyn Container<u32> = &mut LazyUniqueVec::new();
+ let data = gen_dataset_512();
+ for val in data.iter() {
+ s.insert(*val);
+ }
+ println!("Contains 1024? {}", s.contains(&1024));
+}
+
+fn main() {
+ vec_insertion_512m();
+} \ No newline at end of file