Open Bug 1626033 Opened 6 years ago Updated 4 days ago

Convert net_CoalesceDirs function to Rust

Categories

(Core :: Networking, enhancement, P5)

enhancement

Tracking

()

ASSIGNED

People

(Reporter: undef1nd, Assigned: wenzhaoliao)

References

Details

(Whiteboard: [necko-triaged])

Attachments

(2 files, 2 obsolete files)

+++ This bug was initially created as a clone of Bug #1620769 +++

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36

Steps to reproduce:

Whiteboard: [necko-triaged]
Assignee: nobody → yalyna.ts

This good-first-bug hasn't had any activity for 6 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.

Assignee: yalyna.ts → nobody
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: normal → S3

Hello, I'd be willing to take on this issue. Would be great if you could assign this to me

Assignee: nobody → lauchmelder23

Do you want to keep the C-style nature of the algorithm (i.e. in-place modification of the string), or do you want a more rust-like approach, using splits, iterators etc? For that I would have to create new buffers to hold the processed data

It needs to work on an existing char buffer as it's called from our URL parser here

I know that, and I am passing that raw c string to the rust function, i was just wondering if you wanted to keep the in-place modification (i.e. iterating over the string, copying and moving bytes to overwrite unneeded parts of the path), or if it would also be possible to transform the string into a rust string, where I can use rust functions to more easily modify the string, and then finally copy the contents of the rust string over to the original string again.

Basically I'm unsure whether the in-place modification is just a consequence of the C-style algorithm or a performance consideration

It would be best to avoid any extra heap allocations as that would affect performance.

This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit BugBot documentation.

Assignee: lauchmelder23 → nobody
Assignee: nobody → gzyfqh
Status: NEW → ASSIGNED
Attachment #9338432 - Attachment is obsolete: true

This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit BugBot documentation.

Assignee: gzyfqh → nobody
Status: ASSIGNED → NEW
Assignee: nobody → dotoole
Whiteboard: [necko-triaged] → [necko-triaged][necko-priority-queue]
Attachment #9368733 - Attachment is obsolete: true
Attachment #9368847 - Attachment description: Bug 1626033 - Converted net_CoalesceDirs function to Rust. r=valentin → WIP: Bug 1626033 - Converted net_CoalesceDirs function to Rust. r=valentin

resolved comment

Flags: needinfo?(VYV03354)
Flags: needinfo?(VYV03354)
Attachment #9368847 - Attachment description: WIP: Bug 1626033 - Converted net_CoalesceDirs function to Rust. r=valentin → Bug 1626033 - Converted net_CoalesceDirs function to Rust. r=emk
Attachment #9368847 - Attachment description: Bug 1626033 - Converted net_CoalesceDirs function to Rust. r=emk → Bug 1626033 - Converted net_CoalesceDirs function to Rust. r=emk,valentin
Whiteboard: [necko-triaged][necko-priority-queue] → [necko-triaged]
Assignee: dotoole → nobody
Mentor: valentin.gosu
Keywords: good-first-bug
Depends on: 1943056
Assignee: nobody → wenzhaoliao
Attachment #9583627 - Attachment description: WIP: Bug 1626033 - Convert net_CoalesceDirs to safe Rust behind a pref → Bug 1626033 - Convert net_CoalesceDirs to safe Rust behind a pref r=kershaw
Status: NEW → ASSIGNED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: