Both are memory efficient but B is much better for readability and clarity, especially when working with long datas. This method shows you that the loading is performed as the initial step and the conversion is the last one to get a data.table, which is also a benefit of maintainability.