dbestfit is a complete and fast malloc-replacement that features a best-fit algoritm with special small-block treatment, to maximize memory usage. This is particularly suitable for embedded systems, but can also very well be made in *nix-like systems.