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

Fix build time issue and two other tiny cleanups #138

Merged
merged 3 commits into from
Jul 17, 2016
Merged

Fix build time issue and two other tiny cleanups #138

merged 3 commits into from
Jul 17, 2016

Conversation

jeremydw
Copy link
Contributor

Hi @pbakaus, this fixes the build time issue. :) I was doing something very stupid and expensive when generating the nav menu (notice the removal of the O(n) check). The whole site (all locales) builds in about five minutes on my machine now, and I'm pretty happy with that time.

Next week I'll look into some additional caching or optimizations that can be done on the Grow side, but I think a five minute build for 3000 Markdown files is hopefully reasonable enough for now! [Still would like to make it faster though. ;)]

This PR also contains two minor other things

  • Use doc.locale.is_rtl instead of checking a hardcoded ar locale.
  • Update the README to remove grow deploy since it's not used in this workflow, nor does that command actually work without a destination anyway.

If you could double check the nav menu to ensure it's still being generated properly, that'd be great. I did a cursory check and I think it looks good.

Cheers!

@pbakaus
Copy link
Collaborator

pbakaus commented Jul 17, 2016

Ha great find, such small optimizations, so much win :D awesome.

@pbakaus pbakaus merged commit 745e54e into ampproject:master Jul 17, 2016
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.

2 participants