Giter Site home page Giter Site logo

Loading optimization about web-ifc-viewer HOT 7 CLOSED

ifcjs avatar ifcjs commented on August 17, 2024 3
Loading optimization

from web-ifc-viewer.

Comments (7)

agviegas avatar agviegas commented on August 17, 2024 1

This is wonderful! 😀

Yes, I agree. I will finish the first version, and see how can we integrate this.

I am sure this is something everyone will be willing to use. Once I finish 1.0, I will read all your documentation carefully so hopefully we can have this integrated as soon as possible. Congratulations for the amazing work!

from web-ifc-viewer.

agviegas avatar agviegas commented on August 17, 2024 1

Hey @andrewisen, I finally found some time to take a look at your documentation. It is super nice! I would love to see this in a Pull Request to see how fast IFC.js becomes.

As I think they are two separate topics, I would start with web workers, and then (in another PR) implement IndexDB. What do you think? You can simply pull the last changes in the code, submit a draft pull request attached to this issue and I can help you with the problems that arise. 🙂

from web-ifc-viewer.

andrewisen avatar andrewisen commented on August 17, 2024 1

Yhea, sounds great. I can do some refactoring to my code. I'm a bit busy with other stuff at the moment.
I can hopefully make a PR next weekend (not this weekend) 😄

from web-ifc-viewer.

agviegas avatar agviegas commented on August 17, 2024 1

Great. Also, beware that if the reason not to use web workers with buildGeometry is that it doesn't support THREE.js, I can shift all THREE.js logic forward, so we can hopefully fit as much as we can inside the workers, and only in the end call THREE.js entities. Anyway, let's have a first implementation and see how it looks like!

from web-ifc-viewer.

andrewisen avatar andrewisen commented on August 17, 2024 1

I noticed that my multi-web-worker example didn't perform as well with the latest changes (e.g. b41d41b, 4536408, d92e8f8).

There is a time penalty for starting an additional Web Worker. My guess is that the parser is so much faster now that there's no performance gain to be made. This might be different for large (>200MB) IFC files.

I will experiment with this some more 😄

from web-ifc-viewer.

agviegas avatar agviegas commented on August 17, 2024 1

I'm closing this issue for now, as the main responsible for optimization now are both web-ifc-three and web-ifc. Feel free to drop new ideas there to make this even faster!

from web-ifc-viewer.

andrewisen avatar andrewisen commented on August 17, 2024

I had some extra time to look at my code 🤓

Firstly, I did some major code refactoring. I have separated the examples, which will make the PR much nicer. My examples are now placed in the 04 folder, see more here.

I will take a short break (I have other stuff to do atm) and get back to this during this weekend.
I will fix some minor stuff and then submit a PR for each topic.

from web-ifc-viewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.