Giter Club home page Giter Club logo

Comments (2)

jonas-schievink avatar jonas-schievink commented on July 22, 2024

perf output:

   8,67%  plantex  plantex                     [.] glium::program::uniforms_storage::UniformsStorage::set_uniform_value::ha5e5f596cb2f2efe
   7,27%  plantex  plantex                     [.] client::render::Renderer::render::hcc24235783bb4164
   6,72%  plantex  plantex                     [.] _$LT$hash..sip..SipHasher$u20$as$u20$hash..Hasher$GT$::write::he3cca41a9c199b36
   6,54%  plantex  plantex                     [.] _$LT$hash..sip..SipHasher$u20$as$u20$hash..Hasher$GT$::finish::hcaaa5006afab4023
   4,08%  plantex  plantex                     [.] _$LT$hash..sip..SipHasher$u20$as$u20$hash..Hasher$GT$::write::he3cca41a9c199b36
   4,01%  plantex  plantex                     [.] _$LT$program..program..Program$u20$as$u20$ProgramExt$GT$::get_uniform::h98f3787d3c45f7b5
   3,50%  plantex  plantex                     [.] _$LT$hash..sip..SipHasher$u20$as$u20$hash..Hasher$GT$::finish::hcaaa5006afab4023
   3,45%  plantex  plantex                     [.] glium::draw_parameters::sync::he374d9e2f3825e96
   2,95%  plantex  plantex                     [.] glium::vertex_array_object::Binder::bind::hc8a902c9ed8a805f

Do we use a HashMap anywhere else?

EDIT: This seems to be #61 and not this - We don't seem to access the HashMap in the render loop

from plantex.

Cranc avatar Cranc commented on July 22, 2024

i remembered sometime ago reading about "voxel engines" one part of it was read times of different types of different data structures.
if i remember correctly it turned out that "Interval tree + hashing" is by far one of the best ways if you do not have random reads, which isn't really the case here.

ps: found the repository again git repo

from plantex.

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.