Skip to content

Try different date time formatting method#6

Closed
jimmygchen wants to merge 1 commit into
macladson:tracing-cleanupfrom
jimmygchen:tracing-time-fmt
Closed

Try different date time formatting method#6
jimmygchen wants to merge 1 commit into
macladson:tracing-cleanupfrom
jimmygchen:tracing-time-fmt

Conversation

@jimmygchen

@jimmygchen jimmygchen commented Mar 31, 2025

Copy link
Copy Markdown

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