tweag / rust-alpine-mimalloc

27 stars 3 forks source link

General Alpine with Mimalloc (not only for RUST) #11

Closed Zabrane closed 5 months ago

Zabrane commented 5 months ago

Hi @TerrorJack

I've read your blog post with great interested. Especially this part:

This same technique can be used with Alpine’s own /usr/lib/libc.a, allowing mimalloc to function automatically with other languages such as C, C++, or Haskell.

I was wondering if you can help me create a Docker image for Alpine directly incorporating the change described in your post ... altering the default /usr/lib/libc.a and replacing it with mimalloc.

This will help me use it with my C program (I'm not a Rust developer ... yet).

Many thanks

Zabrane commented 5 months ago

@TerrorJack It seems you did it already here:

for libc_path in $(find /usr -name libc.a); do
  {

Am i right?

TerrorJack commented 5 months ago

Yes.

Zabrane commented 5 months ago

Thanks a lot