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

Improve build #114

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

Improve build #114

wants to merge 5 commits into from

Conversation

asarhaddon
Copy link
Contributor

These are various but interconnected suggestions.
The first commit is a prerequisite for test-english-to-latin.

@asarhaddon
Copy link
Contributor Author

Hello.
I have moved the Set LC_COLLATE for a deterministic EWDSLIST.GEN commit into #114.
This makes sense for readability, but creates a merge conflict between the two requests.
I suggest to review the english test first.

Gprbuild knows better than Make about Ada dependencies. Repeating them
manually for Make is error-prone.

As a compromise:
* Make runs gprbuild when at least an Ada source changed.
* when it does, it considers that the data must be refreshed
  because the generator may produce different results.

Before this commit, changing a generator was not triggering a rebuild
of all dictionaries.
A file on disk was probably required in the 90s, but nowadays the
whole file can be stored in RAM, which is way faster.

Instead of explicitly sorting, build an ordered set during input.
Anything O(n log n) should do.
@asarhaddon
Copy link
Contributor Author

I have removed some cosmetic changes in order to ease review.
With the changes in the sorter and the single call to gprbuild, the build is twice faster on my machine.

The monolithic library stuff is unrelated, but affects the same projects, so I want to avoid merge work if possible. The discussion in #112 raised no objection.

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

1 participant