Did you know? the Profiler can speed up your codeSearch Documentation:
SWI-Prolog owl logoPredicate read_stream_to_codes/2