Skip to content

Optimize editor #20

Description

@RealKC

The editor currently does a lot more work than needs to be done when receiving draw events, here are some things that could be done to improve the performance:

  • Avoid some allocations in editor::pixelops by avoiding the intermediate Pixbufs
  • Pull the editor::pixelops code into its own crate and config cargo to enable all optimizations on that one (this is most important for people running kcshot in debug mode -- which I am)
    • Set opt-level = 3 for stackblur-iter 6d4b45a
  • Figure out a way to cache previously drawn surfaces, so we don't need to execute all operations over and over each draw event

I'll update the issue if more things come to mind.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions