Skip to content

Commit 497d847

Browse files
committed
Merge branch 'master' of github.com:markisus/vapid-soa
2 parents 9f09763 + 0c0b92d commit 497d847

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# vapid soa
2-
A simple header only library that implements structure of arrays data structure backed by std::vector.
2+
A simple c++17 header only library that implements structure of arrays data structure backed by std::vector.
33
These are the most useful operations.
44
- `.insert(field1, field2, ...)` field_n inserts into the nth array
55
- `.sort_by_field<col_idx>()` sort all columns in tandem based on particular column
6-
- `.operator()[row_idx]` read data out as tuple of references
6+
- `.operator[](row_idx)` read data out as tuple of references
77
- `.get_column<col_idx>()` direct access to underlying std::vector column
8-
- `.view<col_idx1, col_idx2, ...>()` read subset of the columns out as a tuple of references
8+
- `.view<col_idx1, col_idx2, ...>(row_idx)` read subset of the fields out as a tuple of references
99

1010
Code Example (scratch.cpp)
1111
------------------------
@@ -168,7 +168,7 @@ soa {
168168
169169
Benchmark
170170
-------
171-
We can observe speed ups for structure of arrays vs array of structs with the toy program benchmark.cc
171+
We can observe speed ups for structure of arrays (soa=vapid::soa) vs array of structs (vec=std::vector) with the toy program benchmark.cc.
172172
Here are the results using Visual Studio 2022 on Release mode on my laptop.
173173
174174
```
@@ -216,8 +216,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
216216

217217
http_archive(
218218
name = "com_github_markisus_vapid-soa",
219-
url = "https://github.com/markisus/vapid-soa/archive/dc6b6d6a399b67cc1441965d9ba34642654f8ef4.zip",
220-
strip_prefix = "vapid-soa-dc6b6d6a399b67cc1441965d9ba34642654f8ef4")
219+
url = "https://github.com/markisus/vapid-soa/archive/d3c303a3fe15ebc4c8a7e3049bd21a3f663a42d0.zip",
220+
strip_prefix = "vapid-soa-d3c303a3fe15ebc4c8a7e3049bd21a3f663a42d0")
221221
```
222222
```starlark
223223
# BUILD

0 commit comments

Comments
 (0)