8000 Benchmark json.NewEncoder vs json.Marshal · Issue #409 · coder/websocket · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
8000
Benchmark json.NewEncoder vs json.Marshal #409
Closed
@maggie44

Description

@maggie44

Sync pool can be useful, but in places like in wsjson are there worry about variable message sizes and the impact on memory?

See golang/go#23199 for info on memory growth through sync.pool.

The GC is much more effective than it used to be. Maybe still useful for fixed length pools? I haven't benchmarked it though.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0