Skip to content

Benchmark json.NewEncoder vs json.Marshal #409

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions