Skip to content

Optimizer req.method #4343

@bsdphk

Description

@bsdphk

if (req.method == "foo" || req.method=="bar" ...) is a common theme, both in C and VGC.

Maybe we should add a small bitmap to struct http for the "well known" methods, so that these checks can become trivial AND operations instead of strcmp's ?

I think it might be an improvement even without improved VCC code generation .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions