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?
[ Parent
| on HN ]
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]