Skip to content

Commit 4b19ecb

Browse files
committed
Explained my changes.
1 parent 7f2f891 commit 4b19ecb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Brc
22

3+
Update 1
4+
The main switch is from using File.stream to erlang's prim_file.
5+
For some reason, and I want to investigate this, is that the File.stream based approach only used 8 of 16 processors. That's on my 8 physical CPU, 16 logical CPU machine.
6+
7+
Erlang's prim_file is very handy here. You can read a block of bytes, then at that stopping point you can read_line to get to the end of the line that could have been chopped off from the block read.
8+
Thanks to icedragon200 for pointing me to prim_file.
9+
10+
Original
11+
312
My attempt at the billion row challenge in Elixir.
413
Elixir 1.16.0 - important because the argument order for File.stream changed between 1.15 and 1.16.
514
Vanilla elixir, no extra libraries to run. I am including eflambe to run & make flamegraphs to help tune performance.

0 commit comments

Comments
 (0)