Skip to content

Conversation

@robertoraggi
Copy link
Owner

Prefer std::vector to std::unordered_set in the name
lookup caches and cxx::Identifier to std::string_view
for the preprocessor hidesets.

$ time build/src/frontend/cxx.new tests/manual/source.cc
build/src/frontend/cxx.new tests/manual/source.cc  0.39s user 0.15s system 60% cpu 0.886 total

$ time build/src/frontend/cxx.orig tests/manual/source.cc
build/src/frontend/cxx.orig tests/manual/source.cc  0.54s user 0.14s system 99% cpu 0.679 total

and

$ time build/src/frontend/cxx.new -I /opt/homebrew/include /opt/homebrew/include/boost/graph/adjacency_list.hpp
build/src/frontend/cxx.new -I /opt/homebrew/include   0.62s user 0.20s system 99% cpu 0.821 total

$ time build/src/frontend/cxx.orig -I /opt/homebrew/include /opt/homebrew/include/boost/graph/adjacency_list.hpp 
build/src/frontend/cxx.orig -I /opt/homebrew/include   1.39s user 0.21s system 99% cpu 1.610 total

Prefer std::vector to std::unordered_set in the name
lookup caches and cxx::Identifier to std::string_view
for the preprocessor hidesets.
@robertoraggi robertoraggi merged commit b331648 into main Nov 24, 2025
8 checks passed
@robertoraggi robertoraggi deleted the careful-marten branch November 24, 2025 17:50
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