public CompiledQueryProfile compile(CompiledQueryProfileRegistry registry) {
        return QueryProfileCompiler.compile(this, registry);
    }
Returns a compiled version of this which produces faster lookup times

@param registry the registry this will be added to by the caller, or null if none
container-search/src/main/java/com/yahoo/search/query/profile/QueryProfile.java