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

Go and Java version. #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Go and Java version. #3

wants to merge 1 commit into from

Conversation

cpoli87
Copy link

@cpoli87 cpoli87 commented Mar 30, 2018

The Go version, even without routines outperforms, by far, the Java version.

I tried to put every file to be parsed in one different Go routine. Maybe it is possible to put every line to be parsed in a different thread too.

The regex to find names of functions was the worst part. It's hard to build one regex the get all types of functions considering that every language has its grammar.

I sent the Java files too if interested. However, I did not use threads.

I commented the code. Any doubt please contact me: crispolitowski@gmail.com

PS.: I'd like to thanks for the opportunity. I was new with Go language, so I went from 0 knowledge to ... something during this challenge.

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

Successfully merging this pull request may close these issues.

1 participant