Skip to content

Conversation

@jimmygchen
Copy link

@jimmygchen jimmygchen commented Mar 31, 2025

Issue Addressed

See this comment: sigp#7168 (comment)

Using Local::now().format() seems to cause a bit of CPU overhead (~11.44%).

This PR experiments with formatting timestamp with StrftimeItems and Utc::now(), instead of Local::now().format.

A quick profiling pass shows ~3.58% CPU overhead.

Note: this was a quick experiment and not well tested.

…d of `Local::now().format` for better performance.
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

Successfully merging this pull request may close these issues.

1 participant