This is similar to how we set CMAKE_EXPORT_COMPILE_COMMANDS in the CMake build. This adds about 5-10ms to a clean `gn gen` on my machine.
"based on" in this context means "largely copied from"