xBimTeam / XbimEssentials

A .NET library to work with data in the IFC format. This is the core component of the Xbim Toolkit
https://xbimteam.github.io/
Other
503 stars 174 forks source link

Open document slowly #419

Open LSE-AP opened 2 years ago

LSE-AP commented 2 years ago

Hi,

I use XBimEssentials into Xamarin Android application and I notice the loading time is not fast. Is it possible to improve the loading time ? For example open the file up to a certain level. This library http://rdf.bg/product-list/ifc-engine/ is more faster.

martin1cerny commented 2 years ago

What is the size of the file? Our implementation is early-bound which means that we are parsing the data into data structures implementing IFC schema. This means that you get 100% compile time checking for your code. Many implementations use late-bound approach which makes it sometimes more performant initially, but more error prone and also slower when it comes to process the data (when you actually need to parse everything into some data-structures).

We have an internal implementation of IModel interface which is much faster for the initial data access (about 70MB/s). We are currently deciding if we make this public as well. Would you like to share more about your project @LSE-AP?