Skip to content

Expensive default variable creation #1020

@rosstimothy

Description

@rosstimothy

The RSA keys generated for the defaultServer global variable have a dramatically negative impact on any consumers of the server package.

var defaultServer = NewDefaultServer()

This can be measured using GODEBUG='inittrace=1' on any programs that imports github.com/go-mysql-org/go-mysql/server.

From a M2:

212 ms github.com/go-mysql-org/go-mysql/server

From a t3.xlarge:

537 ms github.com/go-mysql-org/go-mysql/server

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions