Idiom
commit to memory somethingcommit to memory (something)
to study something in order to make yourself remember it.If you want to learn a language well, you have to commit to memory long lists of vocabulary and grammatical rules.The boys read the holy book several times, committing it to memory.