News for hackers. Stuff that matters.
Re:Appending to an std:string character-by-character: how do... by hawk_ on Thursday October 26, 2023 @11:45PM (#38034469)
Surely that must be a specific allocator. Does rust allow you to use say jemalloc or alternatives? Or are you saying this lock is acquired no matter which allocator is used?
Re:Appending to an std:string character-by-character: how do... by connicpu on Thursday October 26, 2023 @11:59PM (#38034536)
Yeah you can override the global allocator pretty easily[1]. But the default uses the system allocator, and I guess it sounds like Wine's is pretty bad

[1]: https://doc.rust-lang.org/std/alloc/index.html#the-global_al...

Re:Appending to an std:string character-by-character: how do... by Animats on Friday October 27, 2023 @02:30AM (#38035332)
It's in the DLL that Wine uses to emulate Windows. Not in the Rust library.

Bug report: [1]

[1] https://bugs.winehq.org/show_bug.cgi?id=54979

Re:Appending to an std:string character-by-character: how do... by hawk_ on Friday October 27, 2023 @09:19AM (#38038063)
Nice! Thanks for the link. Also is it the John Nagle who reported this?
Re:Appending to an std:string character-by-character: how do... by Animats on Friday October 27, 2023 @02:44PM (#38042315)
Yes.