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

Optimize morph serve Command with Caching and DataFrame Previews #31

Merged
merged 13 commits into from
Jan 17, 2025

Conversation

oginokairan
Copy link
Contributor

Describe your changes

This PR addresses issues related to code deprecation and performance improvements.

This pull request introduces the following modifications:

  1. Implementation of morph serve Cache:
  • Introduced caching mechanisms in the morph serve command to enhance performance.
  • Enabled DataFrame preview in the output of morph serve and morph run command.
  1. Refactoring and Removal of Deprecated Files:
  • Eliminated obsolete files and functionalities to streamline the codebase.
  • Refactored existing code to improve maintainability and readability.

GitHub Issue Link (if applicable)

How I Tested These Changes

  • Executed the morph serve command locally to verify the caching and expiring functionality and ensured that responses are returned promptly. i.e., using cached result on second access.
  • Ran the morph serve command locally to ensure the DataFrame preview mechanism is working as expected.
image

Additional context

  • These changes aim to enhance user experience by improving the performance and maintainability of the morph serve command.

@oginokairan oginokairan requested a review from tslcls January 17, 2025 06:24
@oginokairan oginokairan self-assigned this Jan 17, 2025
@oginokairan oginokairan marked this pull request as ready for review January 17, 2025 06:25
@shibatanaoto shibatanaoto added the optimization Improve performance, memory usage, or efficiency of existing code without changing functionality. label Jan 17, 2025
@oginokairan oginokairan merged commit f75c663 into develop Jan 17, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization Improve performance, memory usage, or efficiency of existing code without changing functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants