You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So a significant amount of time is in the validation of the file on read, followed by the conversion of the tree to high-level objects and a good chunk in parsing the yaml and finding all the references in the yaml.
The obvious win would be to disable validation on read, but we should think about the trade off more.
The text was updated successfully, but these errors were encountered:
As I mentioned to @SolarDrew out of band, I think one of the biggest wins could be only serialising one header table for the whole TiledDataset object and then storing slices into that big table for each tile. That would mean going from 726 tables to 1 which given they have a lot of columns would massively simplify the file.
We should be able to do all of that in the Converter, i.e this shouldn't require changes outside of this repo.
With "lazy tree" and no validate on read (and cprofile running) the file takes 87 seconds to open and 70 seconds to load the dataset.
Most of the open time (52s) is spent by libyaml parsing the file, then 23s finding references and the remaining time reading the block index (11s). The test file has 245025 blocks which is contributing to the slow load time.
With a test file on my local system (with the profiler enabled) it took 600s, which is insane (it does take significantly less without the profiler).
Here are some excerpts from the profile (which is insanely large)
So a significant amount of time is in the validation of the file on read, followed by the conversion of the tree to high-level objects and a good chunk in parsing the yaml and finding all the references in the yaml.
The obvious win would be to disable validation on read, but we should think about the trade off more.
The text was updated successfully, but these errors were encountered: