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

Vectorization work on clean_contents; Roxygen 6.1.0 build #80

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Vectorization work on clean_contents; Roxygen 6.1.0 build #80

wants to merge 4 commits into from

Conversation

md0u80c9
Copy link
Contributor

Changes to try to remove as many calls from the nested loops in clean_contents as possible (the loops are still there but are smaller and should be removable).

Rebuild using Roxygen 6.1.0 (CRAN release) which has amended some build files slightly.

@hughjonesd
Copy link
Owner

It's removed half the NAMESPACE file. Not sure why. The roxygen in properties.R relies heavily on @evalnamespace and the make_namespace_S3_entries function. Check this still works.

@md0u80c9
Copy link
Contributor Author

md0u80c9 commented Aug 16, 2018 via email

@hughjonesd
Copy link
Owner

hughjonesd commented Aug 16, 2018 via email

@md0u80c9
Copy link
Contributor Author

Seems beneficial from the benchmark test we used above. Just annoyed I can’t seem to make mapply work to lose those loops entirely.

Obvs the clean function is only part of it - but was the one with the more obvious solutions.

Wonder for writing the sheets themselves if it is quicker to write the data once as strings and apply number formatting in a separate pass?

@hughjonesd
Copy link
Owner

hughjonesd commented Aug 16, 2018 via email

@hughjonesd
Copy link
Owner

Decimal padding will take a bit more than this. The padding is done by adding spaces, the calculation has to be done on a per-column basis. (Not saying it can't be done in one run, just that the calculation varies for different columns.)

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