nietras / 1brc.cs Goto Github PK
View Code? Open in Web Editor NEW1๏ธโฃ๐๐๏ธ The One Billion Row Challenge -- C# Edition -- nietras
License: Apache License 2.0
1๏ธโฃ๐๐๏ธ The One Billion Row Challenge -- C# Edition -- nietras
License: Apache License 2.0
Hello,
I'm not 100% sure but I think you might cut your last segment to short in FindEndOfFileSegment.
I think you should use span.LastIndexOf(LineFeed);
instead of span.IndexOf(LineFeed);
as there is, at least in my current exemple, multiple lines present in the 256 byte span (System.Text.Encoding.UTF8.GetString(span) listed 16 lines).
Hope I didn't miss anything, sorry if I did.
Sorry if I made you feel uncomfortable or something...
Let's discuss my measurements here.
I have just spent some time updating your repo to this and making it work again on Linux
But the results were nothing like I had in the preliminary section of my table. (And yes, it was nothing more than preliminary results).
I now see you are quite active right now and maybe be I did run some bad commit.
Please tell me when I could re-run everything from the master head.
Hey @nietras, I just wanted to let you know that I benchmarked my 1brc attempt against your implementation and mentioned you in my README. You've got the fastest established C# implementation I was aware of so it seemed like an important baseline to have. If you have any concerns or questions about what I wrote there (or if you'd like me to remove any of it), just let me know. Thanks!
https://github.com/noahfalk/1brc/tree/main
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.