Skip to content

Improve Perf by using bytes #7

@ghost

Description

Its seems the graphql-go guys tested their library for performance and improved it by a factor of 30 by using bytes instead of string. So I checked the source and even we are using string which causes a lot of garbage collection it seems so I guess we also need to make the change later to seem how much perf we gain.

References:
graphql-go/graphql@065ab6b
graphql-go/graphql#119

We should take a look at this lib for improving the lexer,
https://github.com/tdewolff/buffer

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