Skip to content

Conversation

@marthacryan
Copy link
Collaborator

@marthacryan marthacryan commented Oct 7, 2024

Converting to base64 in BaseFigure.to_dict() offers the same performance improvements without changing the output of the data field of the Figure object. This will only be called through show() or in dash

Converting to base64 in validate_coerce_fig_to_dict offers the same performance
improvements without changing the output of the data field of the Figure
object.
for trace in fig_dict["data"]:
for key, value in trace.items():
if is_homogeneous_array(value):
print("to typed array: key:", key, "value:", value)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a stray debugging statement?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@gvwilson gvwilson requested review from archmoj and ndrezn October 8, 2024 11:49
@gvwilson gvwilson added feature something new P1 needed for current cycle labels Oct 8, 2024
@marthacryan marthacryan changed the title Convert base64 in validate_coerce_fig_to_dict instead of validate_coerce Convert base64 in BaseFigure.to_dict instead of validate_coerce Oct 10, 2024
@archmoj archmoj marked this pull request as ready for review October 15, 2024 20:28
@archmoj
Copy link
Contributor

archmoj commented Oct 15, 2024

Nice discovery! Thanks to @marthacryan and @emilykl
PR of the year! 🏆 🏅 🌟
This would simplify the changes made to the tests and validation steps on the #4470 PR.
💃

@archmoj archmoj merged commit de2bcb5 into pass-b64 Oct 15, 2024
@archmoj archmoj deleted the b64-before-render branch October 15, 2024 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature something new P1 needed for current cycle

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants