[DO NOT MERGE] Comparison between our main and the forked main#12
Open
lefessan wants to merge 28 commits into
Open
[DO NOT MERGE] Comparison between our main and the forked main#12lefessan wants to merge 28 commits into
lefessan wants to merge 28 commits into
Conversation
Enable multiline DECLARE SECTION
This commit adds a Nix flakes to create automatically a dev environment with `nix develop`. I also removed the flag `-libstdc++fs` as this library is a part of `libstdc++` since GCC 9.
Add a Nix flakes
Now the `run_test` script uses environment variables from the flake.
Add a shell script to run tests
`std::iterator` have been deprecated in stdc++-17. It seems that the recommended usage to build custom iterators in modern C++ consists in defining type aliases with the directive `using` (see for instance the tutorial https://www.internalpointers.com/post/writing-custom-iterators-modern-cpp).
Remove `std::iterator` `std::iterator` have been deprecated in stdc++-17. It seems that the recommended usage to build custom iterators in modern C++ consists in defining type aliases with the directive `using` (see for instance the tutorial https://www.internalpointers.com/post/writing-custom-iterators-modern-cpp).
This PR reduces the huge compile time by a factor of two. I caught the guilty template using the profiler features of `clang++`. Basically, configure the project with ``` CXX=/usr/bin/clang++ CXXFLAGS="-ftime-trace" ./configure ``` will activate the profiler and `clang++` produces a json file per compilation unit. The compiler instantiates massively the template `spdlog::pattern_formatter::handle_flag_` from the spdlog library. It is a well known issue (see for instance the issue gabime/spdlog#1708). The solution consists in using the compiled version of the library with the flag `-DSPDLOG_COMPILED_LIB`. Before this commit, the compile time for the complete project was around 3m30s on my laptop. After this commit, it is 1m50s. The size of the runtime is 69M.
This PR reduces the huge compile time by a factor of two. I caught the guilty template using the profiler features of clang++. Basically, configure the project with CXX=/usr/bin/clang++ CXXFLAGS="-ftime-trace" ./configure will activate the profiler and clang++ produces a json file per compilation unit. The compiler instantiates massively the template spdlog::pattern_formatter::handle_flag_ from the spdlog library. It is a well known issue (see for instance the issue gabime/spdlog#1708). The solution consists in using the compiled version of the library with the flag -DSPDLOG_COMPILED_LIB. Before this commit, the compile time for the complete project was around 3m30s on my laptop. After this commit, it is 1m50s. The size of the runtime is now 69M.
Change test preprocessor to Superbol sql preproc
As we plan to test the legacy preprocessor and new one with gixsql runtime, this commit modifies both the test runner and the bash script to allow this usage.
These files are generated by `autoreconf` and we should put them in the repository.
Add a flag to choose the preprocessor
This commit prepares the script `run_test.sh` to be run in the CI of Superbol. Now the script configures a complete PostgreSQL database in `_output/pg` directory. To run the script with the legacy preprocessor: ```sh nix develop LEGACY_PP= ./run_test.sh ``` With the new preprocessor, you need to specify the location of Superbol: ```sh nix develop SUPERBOL_DIR=... ./run_test.sh ```
This commit prepares the script `run_test.sh` to be run in the CI of Superbol. Now the script configures a complete PostgreSQL database in `_output/pg` directory. To run the script with the legacy preprocessor: ```sh nix develop LEGACY_PP= ./run_test.sh ``` With the new preprocessor, you need to specify the location of Superbol: ```sh nix develop SUPERBOL_DIR=... ./run_test.sh ```
It is important to stop the server after running tests.
Run spellcheck and add finalizer It is important to stop the server after running tests.
The tests #000 and mridoni#91 always fail. This commit disables them temporary.
Disable two tests The tests #000 and mridoni#91 always fail. This commit disables them temporary.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.