Closed zxyyxzz closed 2 years ago
@lzx1413,@MARMOTatZJU Hi, i read your code, but i can't understand the code here, Isn't it redundant here?
Hope you can reply me, thank you!~~ :-)
Because we want to load the data items in class static vars to avoid load data items repeatedly.
Because we want to load the data items in class static vars to avoid load data items repeatedly.
But why does this code can avoid load data items? it just build AdaptorDataset, then you delete it
@zxyyxzz Please paste the link to starting line here so that I can trace to the context of this block easily.
From this stage, I can only guess that some static class members will be initialized when the first object is instantiated, and this is required before the instantiation of the first real dataset. So a dummy object is built here just for initialization.
Specifically, the following comment line in the code explains the using purpose:
build dummy dataset for purpose of dataset setup (e.g. caching path list)
Closed as no further discussion. Feel free to reopen it again.