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

Refactor API and file stats parsers #15

Merged
merged 3 commits into from Dec 3, 2019
Merged

Refactor API and file stats parsers #15

merged 3 commits into from Dec 3, 2019

Conversation

j8r
Copy link
Collaborator

@j8r j8r commented Nov 15, 2019

Here is a quite big refactor of the whole library.
There are fixes to make it work for Crystal 0.31.1, but more importantly the file parsers where optimized to remove intermediate array.
This leads me to redesign the API.

Sorry for the big refactor in a single commit, tell me what you think.
I can split each module refactor in a separate commit, but PID depend on CPU.

@j8r j8r force-pushed the refactor-library branch 3 times, most recently from 6436128 to dd2c6bc Compare November 15, 2019 12:56
@j8r
Copy link
Collaborator Author

j8r commented Nov 15, 2019

Sorry for the push forces, I am figuring out how much sleep we have to wait to have enough load.

Copy link
Member

@veelenga veelenga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks cool. Take a look into a couple of questions.

src/net.cr Outdated Show resolved Hide resolved
spec/cpu_spec.cr Outdated Show resolved Hide resolved
src/cpu.cr Show resolved Hide resolved
@j8r j8r requested a review from bararchy November 15, 2019 15:23
@j8r
Copy link
Collaborator Author

j8r commented Nov 27, 2019

@bararchy have you the time to take a quick look?

@j8r j8r merged commit 4be634b into master Dec 3, 2019
@j8r j8r deleted the refactor-library branch December 3, 2019 08:19
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.

None yet

2 participants