eapache / wof_alloc Goto Github PK
View Code? Open in Web Editor NEWFast C/C++ memory allocator with free-all operation
License: MIT License
Fast C/C++ memory allocator with free-all operation
License: MIT License
In practical usage in Wireshark, it appears that the hotspot in the allocator is the split_free_chunk
method. This method has already been relatively optimized, but there is one potential optimization remaining.
The free-chunk header is currently stored at the front of the chunk. This means split_free_chunk
has to do a bit of song and dance to move it when splitting the chunk, especially if the allocation is small and the new chunk might overlap the header. Placing the free-chunk header at the end of the chunk instead would simplify this and speed up split_free_chunk
, however it would add certain other costs which may or may not outweigh the benefits:
Need to write this and then benchmark it. The callgrind trace at https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9823 indicates a good test-case which hits this hotspot.
Copy from https://code.wireshark.org/review/492 once it is merged and tested.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.