Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
larytet opened this issue May 22, 2019 · 0 comments
Open

Comments

@larytet
Copy link

larytet commented May 22, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant