Haled Odat

Results 77 comments of Haled Odat

```rust let ptr = unsafe { realloc(ptr, new_layout, new_layout.size()) }; ``` This may be unsafe because in the realloc's safety section it has the requirement that the layout passed to...

I benchmarked with the current implementation (alloc) and with realloc and found that it's considerably faster (14x), here is my benchmark code if you want to reproduce it. ```rust fn...

> My OS is Windows11, and seems realloc doesn't work much better for me, what is your OS? I use Linux (EndeavourOS). > And do you think I should change...

Hello @naveedpash 👋 What you could do, is add the dependency in your `Cargo.toml` enabling the flag as an optional dependency, then conditionally enable it based on feature. ```toml getrandom...

I'll un-assign myself, currently not working on this if anyone is interested let me know 😄

Hmmm... I think we can leave the removal of the box in separate PR, just so it doen't get to big :sweat_smile:.... Just wanted to give a potential solution for...

> [..] I needed to switch the `*cast` functions on `GcErased` to use take a value instead of a reference, to avoid clones of `Gc` Do we actually need this...

A lot of rust tests seem to be failing, have you checked why?

Parsing unvalidated utf8 has been implemented in #295

Ideally this should inherit from `EventTarget` (not implemented) have some work on that in a separate PR.