Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

[ufc] to_string: handle integers explicitly for better performance#52

Merged
schmit merged 1 commit intomainfrom
sps/to_string_int_perf
Jun 7, 2024
Merged

[ufc] to_string: handle integers explicitly for better performance#52
schmit merged 1 commit intomainfrom
sps/to_string_int_perf

Conversation

@schmit
Copy link

@schmit schmit commented Jun 7, 2024

Motivation and Context

json.dumps is slow, and integers can be common, so convert them using str instead for better performance

Description

in to_string, add an explicit conversion for integers

How has this been tested?

tests still pass

@schmit schmit requested a review from greghuels June 7, 2024 20:35
@schmit schmit merged commit 6847a70 into main Jun 7, 2024
@schmit schmit deleted the sps/to_string_int_perf branch June 7, 2024 20:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants