Skip to content

You can improve the performance by order of magnitude if you add cache  #13

@larytet

Description

@larytet

The idea is than when the golog.Println() is called the first time the system processes the format string and caches all required for the processing information (callbacks, format data, data types). The subsequent calls just check the cache and push the pre formatted data out. The code spends time only with the variadic part of the arguments.

See this prove of concept https://github.com/larytet/binlog

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions