sentence1: in terms of speed and memory consumption , graph unification remains the most expensive component in unification-based grammar parsing .
sentence2: in terms of both speed and memory consumption , graph unification remains the most expensive component of unification-based grammar parsing .