Giter Club home page Giter Club logo

Comments (7)

zpostfacto avatar zpostfacto commented on May 14, 2024 1

Actually, it's doing multiple allocations.

I checked in a custom allocator that will put them into an arena. It made the CBC encryption about 10% faster on a Ubuntu VM I'm using. We'll see what numbers @tycho comes up with for AES-GCM, on the allocation sizes we care about most. If it's not a decent win, maybe back it out or make it an option? Still, regardless of the numbers, it really bothers me to be making multiple heap calls per packet!

Maybe the heap is fast nowadays and I'm just a dinosaur.

from gamenetworkingsockets.

rlabrecque avatar rlabrecque commented on May 14, 2024

^ For reference: 17c52cb

from gamenetworkingsockets.

zpostfacto avatar zpostfacto commented on May 14, 2024

The numbers are in!

I am a dinosaur.

I'll back out that "optimization". Closing this.

from gamenetworkingsockets.

tycho avatar tycho commented on May 14, 2024

I think the perf diff would depend on the heap implementation. Most modern implementations use a thread-local small allocation pool.

from gamenetworkingsockets.

rlabrecque avatar rlabrecque commented on May 14, 2024

FWIW Unreal isn't doing anything special around EVP_CIPHER_CTX_new,

from gamenetworkingsockets.

TTimo avatar TTimo commented on May 14, 2024

Unreal uses jmalloc for the whole engine though.

from gamenetworkingsockets.

zpostfacto avatar zpostfacto commented on May 14, 2024

Re-opening this issue. Just so I can officially close it for really realz.

from gamenetworkingsockets.

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.