Hello Jacky Chau,
While using an XML file may introduce a small overhead from opening and reading the file, the difference is usually negligible and we recommend using an XML file when possible because it is easier to maintain.
I hope this answers your question.
Sincerely yours,
Dimitar Milushev
the Telerik team