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

Less RAM usage during Compilation of CTRE tests #389

Merged
merged 3 commits into from Aug 3, 2021

Conversation

joka921
Copy link
Member

@joka921 joka921 commented May 4, 2021

The TokenTest required an insane amount of RAM to compile (4.5 GB), because the CTRE library is very expensive at compile time. This problem is mitigated in this PR by factoring out certain (duplicate) calls to CTRE to a separate compilation unit.

Copy link
Member Author

@joka921 joka921 left a comment

Choose a reason for hiding this comment

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

Some small tweaks todo

}

static constexpr auto x = cls(TurtleTokenCtre::PnCharsBaseString);
// static constexpr auto x = cls(TurtleTokenCtre::PnCharsBaseString);
Copy link
Member Author

Choose a reason for hiding this comment

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

Delete out-commented code.

Comment on lines 1 to 3
//
// Created by johannes on 04.05.21.
//
Copy link
Member Author

Choose a reason for hiding this comment

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

Proper Comment.

static bool matchStringLiteralLongQuoteString(std::string_view s);
static bool matchStringLiteralLongSingleQuoteString(std::string_view s);
static bool matchIriref(std::string_view s);
};
Copy link
Member Author

Choose a reason for hiding this comment

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

newline

* This cleans up the software architecture.
* Also equivalently refactor some of the TokenizerTests to use less RAM during compilation
  (The CTRE module is very RAM intensive)
@joka921 joka921 merged commit 4a7dfb9 into ad-freiburg:master Aug 3, 2021
@joka921 joka921 deleted the f.expensiveTests branch August 3, 2021 07:31
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