Skip to content

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