I redirected (by rough patching) all calls to bmem/heap allocation functions to corresponding functions from rpmalloc: peter23@bc993ca
And then tested demo app https://github.com/peter23/nappgui_src/blob/main/demo/main.c compiled with original version of NAppGUI and with patched version.
Demo app just makes 10 millions of 64-bytes allocations, then reallocates all of them to 128-bytes and then frees all of them.
On my PC I get 5.3-5.35 seconds with original version and only 0.7-0.75 seconds with patched version.
Windows 10, MSVC 19.43.34809.
And I get approximately the same results with Clang 20.1.1 + MinGW.
I redirected (by rough patching) all calls to bmem/heap allocation functions to corresponding functions from rpmalloc: peter23@bc993ca
And then tested demo app https://github.com/peter23/nappgui_src/blob/main/demo/main.c compiled with original version of NAppGUI and with patched version.
Demo app just makes 10 millions of 64-bytes allocations, then reallocates all of them to 128-bytes and then frees all of them.
On my PC I get 5.3-5.35 seconds with original version and only 0.7-0.75 seconds with patched version.
Windows 10, MSVC 19.43.34809.
And I get approximately the same results with Clang 20.1.1 + MinGW.