On Memory Allocation for High-Speed Packet Analysis Applications