├── .gitignore ├── CMakeLists.txt ├── README.md ├── bench ├── CMakeLists.txt ├── bench_demo.cpp └── test_demo.cpp ├── docker └── dev.dockerfile ├── include ├── central_cache.h ├── common.h ├── concurrent_alloc.h ├── free_list.h ├── malloc_alias.h ├── object_pool.h ├── page_cache.h ├── size_map.h ├── span.h └── thread_cache.h ├── perf.svg ├── src ├── central_cache.cpp ├── page_cache.cpp └── thread_cache.cpp └── test ├── thread_local └── thread_local.cpp /.gitignore: -------------------------------------------------------------------------------- 1 | build -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxiaobai-1/tiny-tcmalloc/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxiaobai-1/tiny-tcmalloc/HEAD/README.md -------------------------------------------------------------------------------- /bench/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxiaobai-1/tiny-tcmalloc/HEAD/bench/CMakeLists.txt -------------------------------------------------------------------------------- /bench/bench_demo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxiaobai-1/tiny-tcmalloc/HEAD/bench/bench_demo.cpp -------------------------------------------------------------------------------- /bench/test_demo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxiaobai-1/tiny-tcmalloc/HEAD/bench/test_demo.cpp -------------------------------------------------------------------------------- /docker/dev.dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 -------------------------------------------------------------------------------- /include/central_cache.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxiaobai-1/tiny-tcmalloc/HEAD/include/central_cache.h -------------------------------------------------------------------------------- /include/common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxiaobai-1/tiny-tcmalloc/HEAD/include/common.h -------------------------------------------------------------------------------- /include/concurrent_alloc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxiaobai-1/tiny-tcmalloc/HEAD/include/concurrent_alloc.h -------------------------------------------------------------------------------- /include/free_list.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxiaobai-1/tiny-tcmalloc/HEAD/include/free_list.h -------------------------------------------------------------------------------- /include/malloc_alias.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxiaobai-1/tiny-tcmalloc/HEAD/include/malloc_alias.h -------------------------------------------------------------------------------- /include/object_pool.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxiaobai-1/tiny-tcmalloc/HEAD/include/object_pool.h -------------------------------------------------------------------------------- /include/page_cache.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxiaobai-1/tiny-tcmalloc/HEAD/include/page_cache.h -------------------------------------------------------------------------------- /include/size_map.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxiaobai-1/tiny-tcmalloc/HEAD/include/size_map.h -------------------------------------------------------------------------------- /include/span.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxiaobai-1/tiny-tcmalloc/HEAD/include/span.h -------------------------------------------------------------------------------- /include/thread_cache.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxiaobai-1/tiny-tcmalloc/HEAD/include/thread_cache.h -------------------------------------------------------------------------------- /perf.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxiaobai-1/tiny-tcmalloc/HEAD/perf.svg -------------------------------------------------------------------------------- /src/central_cache.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxiaobai-1/tiny-tcmalloc/HEAD/src/central_cache.cpp -------------------------------------------------------------------------------- /src/page_cache.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxiaobai-1/tiny-tcmalloc/HEAD/src/page_cache.cpp -------------------------------------------------------------------------------- /src/thread_cache.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxiaobai-1/tiny-tcmalloc/HEAD/src/thread_cache.cpp -------------------------------------------------------------------------------- /test/thread_local: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxiaobai-1/tiny-tcmalloc/HEAD/test/thread_local -------------------------------------------------------------------------------- /test/thread_local.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxiaobai-1/tiny-tcmalloc/HEAD/test/thread_local.cpp --------------------------------------------------------------------------------