c9s / r3

libr3 is a high-performance path dispatching library. It compiles your route paths into a prefix tree (trie). By using the constructed prefix trie in the start-up time, you may dispatch your routes with efficiency
http://c9s.github.com/r3/bench.html
MIT License
814 stars 83 forks source link

The build process should detect what allocators are installed #33

Closed thedrow closed 10 years ago

thedrow commented 10 years ago

If jemalloc is installed prefer it, after that tcmalloc and fallback to normal malloc if not available.

I have absolutely no knowledge about autotools. Can you please do it?

c9s commented 10 years ago

OK, I will survey about this

thedrow commented 10 years ago

Can we use premake? It generates makefiles and code block projects (and more) so it will be more comfortable for everyone.

c9s commented 10 years ago

It's fine to have the two co-existing build system, but the added build system should be well-maintained.

I will keep using autotools for this project.

thedrow commented 10 years ago

Then I see no point in investing time in another one.

c9s commented 10 years ago

Working on the branch https://github.com/c9s/r3/tree/feature/malloc-option, the option --with-malloc=jemalloc works but does not work on travis-ci ... :-(

c9s commented 10 years ago

Done at f5222c6

thedrow commented 10 years ago

Wait, what about tcmalloc? It's also supported by zmalloc.