Update the SWI-Prolog adapter file with a faster implementation of the term reading internal predicate