Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BASH #17

Open
alphafalfa opened this issue Apr 14, 2024 · 5 comments
Open

Add BASH #17

alphafalfa opened this issue Apr 14, 2024 · 5 comments

Comments

@alphafalfa
Copy link

I love programming in shell script! Am I good at it? No, but there are serious ninjas out there.

@jcbhmr
Copy link
Member

jcbhmr commented Apr 14, 2024

great idea! youve been invited to the org; feel free to do whatever 👍

@pc2005cz
Copy link

So how is adding the bash category going? I've already an example, which (probably) works for 10M rows :-)

@alphafalfa
Copy link
Author

I wrote a version in awk that was blazing fast for the first 10k rows, and then started going nuts and printing near gibberish.

@pc2005cz
Copy link

I wrote a version in awk

Ah OK I'm going for a pure bash implementation, but awk is interesting solution too. It could be two distinct categories. Are you loading entire file into some variable?

Gonna commit the solution tomorrow (I've forgot to roundup results at the end), also I'm not familiar with github and looking into C category repo it seems the bash category gonna need to be different (especially "running each program 5 times" would take too much time).

@pc2005cz
Copy link

My implementation of 1brc_bash. Running time 342 minutes :-D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants